prefect.utilities.processutils
Functions
open_process
anyio.open_process
but with:
- Support for Windows command joining
- Termination of the process on exception during yield
- Forced cleanup of process resources during cancellation
run_process
anyio.run_process
but with:
- Use of our
open_process
utility to ensure resources are cleaned up - Simple
stream_output
support to connect the subprocess to the parent stdout/err - Support for submission with
TaskGroup.start
marking as ‘started’ after the process has been created. When used, the PID is returned to the task status.