Job sometimes reports as "already running" when it isn't, and then runs anyway #241
Open
3 tasks done
Labels
bug
Something isn't working
Describe the bug
Node.js version: 20.11.x
OS version: Alpine 3.18
Description:
I have a job that is scheduled to run "every 1 minute" and takes about 5 seconds to complete. Every so often Bree will think the job is already running when it isn't, then will then happily start it running anyway. Here's an example from my logs:
I'm using the
worker created
andworker deleted
events to write out the current jobs and current workers when jobs are created and deleted. In the logs abovegetVatsimData
finished running at 2:10:12 and there were no active workers when it exited. The next run of the job started at 2:10:59 and resulted in the "already running" error, but then started anyway just 62ms later.Expected behavior
No warning.
Code to reproduce
No standalone code, but my bree code is in a single file in my repo.
Checklist
The text was updated successfully, but these errors were encountered: