mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-14 21:35:25 +00:00
remove error msg dump on failed repo index job, and update indexedAt field
This commit is contained in:
parent
8b44505cf3
commit
7ce10672e1
1 changed files with 2 additions and 1 deletions
|
|
@ -316,7 +316,7 @@ export class RepoManager implements IRepoManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
private async onIndexJobFailed(job: Job<RepoIndexingPayload> | undefined, err: unknown) {
|
private async onIndexJobFailed(job: Job<RepoIndexingPayload> | undefined, err: unknown) {
|
||||||
this.logger.info(`Repo index job failed (id: ${job?.id ?? 'unknown'}) with error: ${err}`);
|
this.logger.info(`Repo index job failed (id: ${job?.id ?? 'unknown'})`);
|
||||||
if (job) {
|
if (job) {
|
||||||
this.promClient.activeRepoIndexingJobs.dec();
|
this.promClient.activeRepoIndexingJobs.dec();
|
||||||
this.promClient.repoIndexingFailTotal.inc();
|
this.promClient.repoIndexingFailTotal.inc();
|
||||||
|
|
@ -327,6 +327,7 @@ export class RepoManager implements IRepoManager {
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
repoIndexingStatus: RepoIndexingStatus.FAILED,
|
repoIndexingStatus: RepoIndexingStatus.FAILED,
|
||||||
|
indexedAt: new Date(),
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue