Changed order of expiry commands

This commit is contained in:
Michael 2024-09-08 16:19:01 +00:00
parent 37faff6d98
commit 092ec00cdb
3 changed files with 6 additions and 5 deletions

View file

@ -67,7 +67,7 @@ class Cron
$entries = DBA::select(
'workerqueue',
['id', 'pid', 'executed', 'priority', 'command', 'parameter'],
['NOT `done` AND `pid` != 0'],
['NOT `done` AND `pid` != ? AND `executed` > ?', 0, DBA::NULL_DATETIME],
['order' => ['priority', 'retrial', 'created']]
);