mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
re-read job, in case it had been updated or even deleted in the method
This commit is contained in:
parent
008c95aa98
commit
04650e3680
@ -436,6 +436,12 @@
|
|||||||
|
|
||||||
ExecMethod($job['method'],$job['data']);
|
ExecMethod($job['method'],$job['data']);
|
||||||
|
|
||||||
|
// re-read job, in case it had been updated or even deleted in the method
|
||||||
|
$updated = $this->read($id);
|
||||||
|
if ($updated && isset($updated[$id]))
|
||||||
|
{
|
||||||
|
$job = $updated[$id];
|
||||||
|
|
||||||
if ($job['next'] = $this->next_run($job['times']))
|
if ($job['next'] = $this->next_run($job['times']))
|
||||||
{
|
{
|
||||||
$this->write($job,True);
|
$this->write($job,True);
|
||||||
@ -446,6 +452,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
$this->last_check_run(True,True,$run_by); // release semaphore
|
$this->last_check_run(True,True,$run_by); // release semaphore
|
||||||
|
|
||||||
return $jobs ? count($jobs) : False;
|
return $jobs ? count($jobs) : False;
|
||||||
|
Loading…
Reference in New Issue
Block a user