feature/cierres #30

Merged
aldarien merged 460 commits from feature/cierres into develop 2025-09-11 15:16:17 -03:00
238 changed files with 750 additions and 8453 deletions
Showing only changes of commit 6d1a1c914a - Show all commits

View File

@ -35,9 +35,10 @@ class BaseLoop extends Console\Command\Command
$output->writeln('Starting loop...');
while (true) {
$commands = $this->scheduleService->run();
$commands = $this->scheduleService->getPending();
foreach ($commands as $command) {
$this->runCommand($input, $output, $command);
sleep(10);
}
}
return self::SUCCESS;

View File

@ -12,7 +12,7 @@ class Schedule
protected string $filename = '/var/spool/cron/crontabs/root';
public function run(): array
public function getPending(): array
{
$now = new DateTimeImmutable();
$schedule = $this->getCommandList();