#Scheduler is not cosistantly hitting hourlyAt(5)

2 messages · Page 1 of 1 (latest)

thorny dagger
#

We have a container running in ECS.

We have a few commands running on schedule. There is one command that is not running as should.

$schedule->command('app:stock:import')->hourlyAt(5)->runInBackground();

Ive set to run as background so it doesnt have to wait in queue for other commands running at the same time or just before.

The command executes at odd times. It will for example run at 06:05, 07:05, 08:05 and then skip 09:05, 10:05, 11:05 etc.

Im not sure what could be causing this.

This is how the scheduler is run in docker entry.

    echo "Running scheduler..."
    while [ true ]
    do
      php artisan schedule:run -vv --no-interaction
      sleep 60
    done

Thanks

hollow wagon
#

I have same issue on Kubernetes, in my opinion the problem ist ECS/Kubernetes because the startup time of the Docker container in a cron.