Skip to content

Alternative to queue worker app bootstrapped in memory just like in octane #49954

Answered by marius-mcp
marius-mcp asked this question in Q&A
Discussion options

You must be logged in to vote

After 4 h of research it hit me: The daemon queue:work "stores the booted application state in memory" BECAUSE IT IS A PHP process not because the app is stored in the cache or in memory on purpose by laravel. So just restarting queue:work command will "invalidate the cached code and static variables".

This should be better explained in the documentation....

So the --once option is enough and there is no need for queue:restart

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@marius-mcp
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by marius-mcp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant