You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
switch tasks support all of the standard task options with the exception of use_exec.
Does that not mean a subprocess is spawned regardless?
Alternatively, could we consider adding exec in front of uvicorn ... and gunicorn ... and avoid spawning a subprocess that way or is it already too late since a subprocess of the poe cli is already spawned at that point?
From the PyPI project description:
Normally tasks are executed as subprocesses of the poe cli.
Unfortunately, I don't think adding exec will help because that will just replace the process that Poe starts to run the shell script (and not the Poe process itself).
One solution is to replace the current shell switch to a Poe switch task, in which case we can exec the switched commands.
We should be exec'ing that process, but it seems that Poe the Poet does not support this for
shell
tasks: https://poethepoet.natn.io/tasks/task_types/shell.html#available-task-optionsLooks like this can be solved with https://poethepoet.natn.io/tasks/task_types/switch.html.
The text was updated successfully, but these errors were encountered: