Fix BullMQ "Custom Id cannot be integers" error by prefixing jobId

This commit is contained in:
tdurieux
2026-05-07 05:53:26 +03:00
parent 8fc7ac5175
commit b8cfe293ea
5 changed files with 18 additions and 10 deletions
+4 -1
View File
@@ -347,6 +347,9 @@ export default class Repository {
if (!newCommit) {
logger.error("branch not found", {
code: "branch_not_found",
httpStatus: 404,
repoId: this.repoId,
branch: branchName,
repo: this.model.source.repositoryName,
});
@@ -397,7 +400,7 @@ export default class Repository {
}
await this.resetSate(RepositoryStatus.PREPARING);
await downloadQueue.add(this.repoId, { repoId: this.repoId }, {
jobId: this.repoId,
jobId: `repo-${this.repoId}`,
attempts: 3,
});
}