remove error msg dump on failed repo index job, and update indexedAt field

This commit is contained in:
msukkari 2025-02-27 16:04:31 -08:00
parent 8b44505cf3
commit 7ce10672e1

View file

@ -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(),
}
})
}