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

Queue not working #340

Closed
evgenmedia opened this issue Oct 6, 2019 · 3 comments
Closed

Queue not working #340

evgenmedia opened this issue Oct 6, 2019 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@evgenmedia
Copy link

evgenmedia commented Oct 6, 2019

Hello!

When i try to run artisan queue:work --queue='emails,default' --sleep=5 --tries=1 nothing happens, but worker kills

All jobs are still in database

I run it on my private server, other projects in neighboring directories are perfect works with php artisan queue:work command

In system section got error: 2 commands were running at the same time. Commands have been restarted

@evgenmedia
Copy link
Author

Any news?

@freescout-helpdesk
Copy link
Owner

freescout-helpdesk commented Oct 10, 2019

You can find proper cron command to run in System --> Status.

You need to debug the issue and find the reason by yourself. See https://github.com/freescout-helpdesk/freescout/blob/dist/app/Console/Kernel.php

@evgenmedia
Copy link
Author

Okay, I fixed the problem

The problem was that the queue:work process was not correctly defined by grep command

For example, in the file app/Http/Controllers/SystemController.php you need to replace queue:work with emails,default in commands_list array at line 79

And in the file app/Console/Kernel.php, you need to replace queue:work with emails,default at line 157

This problem occurs on those hosts where queue:work processes from other projects are already running.

It's hot fix for my environment, but without changing the logic of the code, it is necessary to add a prefix freescout for each queue and search for processes by this prefix

P.S. Thanks for the system, bought a couple of modules

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants