mirror of
https://github.com/friendica/friendica
synced 2025-04-23 23:50:12 +00:00
check if value is set
get basepath with config instead cache
This commit is contained in:
parent
74edf9994f
commit
a3d6062476
4 changed files with 25 additions and 3 deletions
|
@ -277,6 +277,8 @@ class Worker
|
|||
$age = (time() - self::$last_update) / 60;
|
||||
self::$last_update = time();
|
||||
|
||||
Logger::alert('last_update', ['age' => $age, 'last_update' => self::$last_update]);
|
||||
|
||||
if ($age > 1) {
|
||||
$stamp = (float)microtime(true);
|
||||
DBA::update('workerqueue', ['executed' => DateTimeFormat::utcNow()], ['pid' => $mypid, 'done' => false]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue