V
V
VitaliyBorys2019-01-17 17:32:16
Yii
VitaliyBorys, 2019-01-17 17:32:16

Why do queues go to failed?

Good afternoon.
There is a project on Lare in which I use a queuing system - driver database. Placed the project on VSP, configured supervisor. But after I launched it, the tasks are executed, and after about two minutes (maybe less), all tasks fall into failed (table failed_jobs). What could be the problem?
In the project, the user makes a request, on the basis of which I form a task. The essence of the task is that there is a request to a third-party CRM system, the system receives a response, generates a report based on it and sends it to the user by mail. No queues here. Seconds 70-120 everything works fine, and then all tasks fail.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
Kirill Arutyunov, 2016-05-04
@arutyunov

Run the console from Openserver: prntscr.com/b06qkg
The composer command is available in this console.
Just go to /Openserver/domains/ and create a yii2 project there in the desired folder.

P
Peter Diamondberg, 2019-08-07
@Diamondberg

If you have Composer pre -installed on OpenServer and you get the error could not open input file: composer.phar openserver when installing Yii 2.0, then I think you need to look here https://getcomposer.org/download/ and write in the console of the pre-installed composer ( copy) everything one by one from Command-line installation Do not forget to go to the folder in the console where you will install Yii 2.0 Enjoy :)

D
Dmitry, 2019-01-18
@VitaliyBorys

Yesterday I was just trying to figure out why my video conversion tasks are failing, although the conversion continues in the meantime. Check the retry_after parameter in the config of the queue you are using, and specify --timeout in the Supervisor settings so that retry_after accurately covers the entire task execution time and is slightly larger than the timeout in the Supervisor.
For example:
5c416ee0f14c9344164820.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question