check if value is set

get basepath with config instead cache
This commit is contained in:
Philipp Holzer
2019-02-18 08:51:38 +01:00
parent 74edf9994f
commit a3d6062476
4 changed files with 25 additions and 3 deletions

View File

@@ -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]);