Releasing the PHP executable/worker in CLI context #1357
Unanswered
Guikingone
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi 👋🏻
Small question regarding the usage of the worker in CLI context, it seems that when enabling the worker mode (in
compose.yml
file or via env variable) and using the CLI (thinkcache:clear
,doctrine:database:drop
, etc) in a Symfony project, the binaries does not release existing processes and/or tend to create a lot of them each time, is there any workaround to disable the worker in CLI context or maybe force it to only use one worker for this type of use case?I'm asking because is kind of sad to not being able to delete a database because Doctrine tells us that a process is already connected to it 😄
For information, i'm using the worker var this way (
compose.override.yml
):Thanks again for the help and have a great day 🙂
Beta Was this translation helpful? Give feedback.
All reactions