race conditions in cron
Bug #891170 reported by
Andrew Nicols
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Richard Mansfield |
Bug Description
Thanks to tim hunt at the OU for pointing the first issue out:
It's possible for cron_lock to fail to get the $started value if the row has been deleted between attempting to insert the record, and attempting to retrieve the start date
http://
Additionally, when we try to restart a job which has been running for > 24 hours, we should probably call cron_lock() rather than insert_record()
http://
That said, we're very unlikely to ever hit this given the use of cron.
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Thanks for that Andrew and Tim.
I reckon we should target this for 1.5 just because it's the kind of bug that's really painful to debug when it happens in the wild.