mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-12 20:35:24 +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) {
|
||||
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) {
|
||||
this.promClient.activeRepoIndexingJobs.dec();
|
||||
this.promClient.repoIndexingFailTotal.inc();
|
||||
|
|
@ -327,6 +327,7 @@ export class RepoManager implements IRepoManager {
|
|||
},
|
||||
data: {
|
||||
repoIndexingStatus: RepoIndexingStatus.FAILED,
|
||||
indexedAt: new Date(),
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue