mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
fix somehow created async-job with a next time before the keep time
eg. not updated alarm trigger time in the past
This commit is contained in:
parent
d2b2924638
commit
584613f0bf
@ -475,6 +475,13 @@ class Asyncservice
|
||||
error_log(__METHOD__."() finally deleting job ".array2string($job));
|
||||
$this->delete($job['id']);
|
||||
}
|
||||
// fix somehow created async-job with a next time before the keep time, eg. not updated alarm trigger time in the past
|
||||
if ($job['next'] < $job['data']['keep_time'])
|
||||
{
|
||||
$job['next'] = $job['data']['keep_time'];
|
||||
if ($this->debug) error_log(__METHOD__."() setting next to keep_time (".date('Y-m-d H:i:s', $job['data']['keep_time']).') for job '.array2string($job));
|
||||
$this->write($job, True);
|
||||
}
|
||||
if ($this->debug) error_log(__METHOD__."() keeping job ".array2string($job));
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user