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
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
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]);