calling job with data array, plus all regular job data, like eg. next (time job was supposted to run)

This commit is contained in:
Ralf Becker 2010-09-06 14:09:27 +00:00
parent 488959aa5f
commit 5e47dcd0da

View File

@ -426,7 +426,7 @@ class asyncservice
list($app) = strpos($job['method'],'::') !== false ? explode('_',$job['method']) :
explode('.',$job['method']);
translation::add_app($app);
ExecMethod($job['method'],$job['data']);
ExecMethod($job['method'],$job['data']+array_diff_key($job,array('data' => false)));
// re-read job, in case it had been updated or even deleted in the method
$updated = $this->read($id);