Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple workers cause conflicts when running simultaneously #1672

Open
munindra-ai opened this issue Jan 10, 2025 · 0 comments
Open

Multiple workers cause conflicts when running simultaneously #1672

munindra-ai opened this issue Jan 10, 2025 · 0 comments

Comments

@munindra-ai
Copy link

munindra-ai commented Jan 10, 2025

I am encountering an issue where running two separate workers with Supervisor causes conflicts, despite each worker having its own configuration and unique settings. Both workers are necessary for my application, but their simultaneous execution leads to unexpected behavior.

Steps to Reproduce

  1. Create two Supervisor worker configurations, for example:
  • project-1-worker.conf
  • project-2-worker.conf

project-1-worker.conf

[program:project-1-worker]
command=php /var/www/html/project-1/artisan queue:work --queue=project-1 --tries=3 --timeout=90
autostart=true
autorestart=true
user=ubuntu
numprocs=1
redirect_stderr=true
stdout_logfile=/var/www/html/project-1/storage/logs/project-1-worker.log

project-2-worker.conf

[program:project-2-worker]
command=php /var/www/html/project-2/artisan queue:work --queue=project-2 --tries=3 --timeout=90
autostart=true
autorestart=true
user=ubuntu
numprocs=1
redirect_stderr=true
stdout_logfile=/var/www/html/project-2/storage/logs/project-2-worker.log
  1. Run the following commands:
sudo supervisorctl reread
sudo supervisorctl update

Queue system: Laravel Queue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant