]> git.mxchange.org Git - friendica.git/commitdiff
Recurring had been executed only once - and then never again
authorMichael <heluecht@pirati.ca>
Mon, 19 Jun 2017 18:20:19 +0000 (18:20 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 19 Jun 2017 18:20:19 +0000 (18:20 +0000)
boot.php

index cfb82f5381b36c2390f4878c64e81c6dc335195f..b4f36eb84ebacc52ddcd1c1fd10b6c3bd6710c05 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -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));