Logging message added
This commit is contained in:
parent
f0cf9ce519
commit
ed8cdc7d85
1 changed files with 3 additions and 1 deletions
|
@ -85,8 +85,10 @@ function poller_run(&$argv, &$argc){
|
||||||
$id = q("SELECT `id` FROM `workerqueue` WHERE `id` = %d AND `pid` = %d",
|
$id = q("SELECT `id` FROM `workerqueue` WHERE `id` = %d AND `pid` = %d",
|
||||||
intval($r[0]["id"]),
|
intval($r[0]["id"]),
|
||||||
intval(getmypid()));
|
intval(getmypid()));
|
||||||
if (!$id)
|
if (!$id) {
|
||||||
|
logger("Queue item ".$r[0]["id"]." was executed multiple times - quitting this one", LOGGER_DEBUG);
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$argv = json_decode($r[0]["parameter"]);
|
$argv = json_decode($r[0]["parameter"]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue