1
0
Fork 0

Merge pull request #3541 from annando/bugfix-poller

Recurring had been executed only once - and then never again
This commit is contained in:
Tobias Diekershoff 2017-06-19 20:35:08 +02:00 committed by GitHub
commit 638e6491cc

View file

@ -1090,7 +1090,7 @@ function proc_run($cmd) {
array_shift($argv);
$parameters = json_encode($argv);
$found = dba::select('workerqueue', array('id'), array('parameter' => $parameters), array('limit' => 1));
$found = dba::select('workerqueue', array('id'), array('parameter' => $parameters, 'done' => false), array('limit' => 1));
if (!dbm::is_result($found)) {
dba::insert('workerqueue', array('parameter' => $parameters, 'created' => $created, 'priority' => $priority));