mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +02:00
Add additional checks for the worker
This commit is contained in:
parent
cc7d5602a9
commit
bd88179419
5 changed files with 36 additions and 1 deletions
5
boot.php
5
boot.php
|
@ -1086,6 +1086,11 @@ function proc_run($cmd) {
|
|||
$parameters = json_encode($argv);
|
||||
$found = dba::exists('workerqueue', array('parameter' => $parameters, 'done' => false));
|
||||
|
||||
// Quit if there was a database error - a precaution for the update process to 3.5.3
|
||||
if (dba::errorNo() != 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!$found) {
|
||||
dba::insert('workerqueue', array('parameter' => $parameters, 'created' => $created, 'priority' => $priority));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue