modal.container_process

modal.container_process.ContainerProcess 

Represents a running process in a container.

stdout 

StreamReader for the container process’s stdout stream.

stderr 

StreamReader for the container process’s stderr stream.

stdin 

StreamWriter for the container process’s stdin stream.

returncode 

poll 

Check if the container process has finished running.

Returns None if the process is still running, else returns the exit code.

wait 

Wait for the container process to finish running. Returns the exit code.