Answer the question
In order to leave comments, you need to log in
Yii2 Queue how to stop the execution of the current task?
This extension is
used by https://github.com/yiisoft/yii2-queue
I
start the task, the usual loop with the output of the number on the screen at +1 each iteration.
I do a queue remove of this task, the entire task is deleted, but the process continues to go, the cycle ticks further and is not stopped ...
How can I make the process itself stop, and if there are other tasks in the queue, start the next one?
Answer the question
In order to leave comments, you need to log in
If the task is already in progress, then it cannot be stopped using standard Yii tools.
You have removed a task from the queue, but it is already in progress. Until the task is completed, the consumer will work.
In the case of while (true) echo $i++; the task will never complete.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question