[Bug]: Job scheduler creates multiple delayed jobs when upserting in quick succession #2988
Closed
1 task done
Labels
bug
Something isn't working
Version
v5.34.5
Platform
NodeJS
What happened?
If you call upsertJobScheduler in quick succession it will create multiple delayed jobs for the same scheduler.
How to reproduce.
Took me awhile to reproduce. Needed to have a worker defined. I also struggled to get it to fail consistently with the fake clock...
Test: d6117a0#diff-a19149ca7b4f2a0cee7cff833e33245c005ef785fc0a7ac3616a11b79148a21fR213
Relevant log output
Struggled to make it fail every time with the fake clock, but here is an example failure:
Code of Conduct
The text was updated successfully, but these errors were encountered: