Update src/Core/Worker.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
7efd01880c
commit
2c0db7546b
1 changed files with 3 additions and 3 deletions
|
@ -1430,10 +1430,10 @@ class Worker
|
||||||
$execute = !(($current > $end) && ($current < $start));
|
$execute = !(($current > $end) && ($current < $start));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$execute) {
|
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 {
|
|
||||||
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)]);
|
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;
|
return $execute;
|
||||||
|
|
Loading…
Reference in a new issue