feature/cierres #31

Merged
aldarien merged 462 commits from feature/cierres into develop 2025-09-11 17:05:18 -03:00
288 changed files with 908 additions and 12213 deletions
Showing only changes of commit ee74fc7588 - Show all commits

View File

@ -40,7 +40,11 @@ class BaseLoop extends Console\Command\Command
// wait for next minute
$now = new DateTimeImmutable();
$nextMinute = new DateTimeImmutable($now->format('Y-m-d H:i:00'));
$nextMinute->add(new \DateInterval('PT1M'));
$nextMinute = $nextMinute->add(new \DateInterval('PT1M'));
$this->logger->debug('Wait', [
'now' => $now->format('Y-m-d H:i:s.u'),
'nextMinute' => $nextMinute->format('Y-m-d H:i:s.u'),
]);
$diff = $nextMinute->getTimestamp() - $now->getTimestamp();
if ($diff > 0) {
$output->writeln("Waiting {$diff} seconds...");