Skip to content

Commit

Permalink
Add lockTimeout and acquireTimeout options in Monitor API semaphore
Browse files Browse the repository at this point in the history
  • Loading branch information
simlarsen committed Dec 6, 2024
1 parent 9393388 commit a3f1302
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ProbeIngest/API/Monitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,8 @@ router.post(
mutex = await Semaphore.lock({
key: probeId.toString(),
namespace: "MonitorAPI.monitor-list",
lockTimeout: 15000,
acquireTimeout: 20000,
});
} catch (err) {
logger.error(err);
Expand Down

0 comments on commit a3f1302

Please sign in to comment.