Thinkphp5.1 queue can not be asynchronous
Queue::push, the code in the consumer class executes directly,
Then the php think queue:listen and php think queue:work commands are not clear what they mean
is it listening to the execution process and status of the task or is it necessary to actively execute the command to trigger the task?
queue that after an interface is transferred, the interface sends a task to be executed asynchronously and then returns directly to avoid the front end waiting for
or after the interface is transferred, the task is just added to the queue and needs to be executed manually by running php commands?
If it was the former, now I'm done calling the interface and waiting until all the code has executed before returning
. If it was the latter, now my code executes immediately, without manually triggering
No answer yet