Closed
Bug 1168957
Opened 10 years ago
Closed 8 years ago
Check that crontabber doesn't start the same job twice
Categories
(Socorro :: General, task)
Socorro
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: peterbe, Assigned: peterbe)
Details
Ideally we should be able to do this:
./crontabber.py --admin.conf=myjobs.ini &
./crontabber.py --admin.conf=myjobs.ini
I.e. two "parallel" crontabber instances.
We used to determine which jobs to do on based on next_time but we now also have the ongoing state which should prevent instance number >1 to not run.
FTR, we're not worried about starting two instance on the same server but possibly (accidentally) starting up more than 1 EC2 instances using the same config.
| Assignee | ||
Updated•10 years ago
|
Assignee: nobody → peterbe
| Assignee | ||
Comment 1•10 years ago
|
||
Turns out, it's possible to start a second instance of crontabber whilst a first instance is in the midst of running a job :(
https://github.com/mozilla/crontabber/issues/68
| Assignee | ||
Comment 2•8 years ago
|
||
The feature is now built into crontabber. It's now resilient to running concurrently against a central postgres store without trampling over itself by doing the same job twice in parallel.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•