Skip to content

Commit

Permalink
Merge branch 'staging'
Browse files Browse the repository at this point in the history
  • Loading branch information
folland87 committed Mar 10, 2025
2 parents 34200d9 + 0ca5b21 commit 790053b
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions src/jobs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ agenda.define(
);
agenda.define(
"update key numbers",
{ shouldSaveResult: true },
{
shouldSaveResult: true,
lockLifetime: 1000 * 60 * 60 * 5,
},
updateKeyNumbers,
);
agenda.define("reindex", { shouldSaveResult: true }, reindex);
Expand Down Expand Up @@ -143,8 +146,22 @@ agenda.define(
{ shouldSaveResult: true },
setIdentifierStatus,
);
agenda.define(taskName, { shouldSaveResult: true }, monitorSiren);
agenda.define(`${taskName}-etab`, { shouldSaveResult: true }, monitorSiret);
agenda.define(
taskName,
{
shouldSaveResult: true,
lockLifetime: 1000 * 60 * 60 * 2,
},
monitorSiren,
);
agenda.define(
`${taskName}-etab`,
{
shouldSaveResult: true,
lockLifetime: 1000 * 60 * 60 * 2,
},
monitorSiret,
);

agenda
.on("ready", () => {
Expand Down

0 comments on commit 790053b

Please sign in to comment.