Semaphore based locking and hopefully the fix for the workerqueue
This commit is contained in:
parent
7097673fa1
commit
4515c36f69
7 changed files with 102 additions and 18 deletions
|
|
@ -84,7 +84,7 @@ function cron_run(&$argv, &$argc){
|
|||
proc_run(PRIORITY_LOW, "include/cronjobs.php", "update_photo_albums");
|
||||
|
||||
// Delete all done workerqueue entries
|
||||
dba::delete('workerqueue', array('done' => true));
|
||||
dba::e('DELETE FROM `workerqueue` WHERE `done` AND `executed` < UTC_TIMESTAMP() - INTERVAL 12 HOUR');
|
||||
}
|
||||
|
||||
// Poll contacts
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue