Support the ongoing development of Laravel.io →
Queues Laravel Jobs
  • Laravel Framework 8.11.2
  • PHP Version: PHP 7.4.11
  • Database Driver & Version: MySql 5.7

Description:

Hi, I'm using laradock with php-worker with scheduler configured on supervisor. It's the default configs basically. First I thought it was a bug on my code, then I take drastic measures and removed all, leaving just Log::info calls trying to understand what was causing 2 calls on my commands. So as you can see in the pictures, the schedule method is been called twice. Can someone give me some guidance to prevent this from happening? Thanks

Supervisor

[program:laravel-scheduler] process_name=%(program_name)s_%(process_num)02d command=/bin/sh -c "while [ true ]; do (php /var/www/artisan schedule:run --verbose --no-interaction &); sleep 60; done" autostart=true autorestart=true numprocs=1 user=laradock redirect_stderr=true

Images:

image image

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

João P sdjrppl Joined 3 Nov 2020

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.