1
0
Fork 0

Update src/Core/Worker.php

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
Michael Vogel 2020-10-17 15:54:52 +02:00 committed by GitHub
parent 7efd01880c
commit 2c0db7546b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1430,10 +1430,10 @@ class Worker
$execute = !(($current > $end) && ($current < $start));
}
if (!$execute) {
Logger::info('We are outside the maintenance window', ['current' => date('H:i:s', $current), 'start' => date('H:i:s', $start), 'end' => date('H:i:s', $end)]);
} else {
if ($execute) {
Logger::info('We are inside the maintenance window', ['current' => date('H:i:s', $current), 'start' => date('H:i:s', $start), 'end' => date('H:i:s', $end)]);
} else {
Logger::info('We are outside the maintenance window', ['current' => date('H:i:s', $current), 'start' => date('H:i:s', $start), 'end' => date('H:i:s', $end)]);
}
return $execute;