I was getting the same error as @einarbmag when trying to start a subprocess with Prodigy on a FastAPI application on a Docker container (thread here). I was able to fix it by assigning the workers
argument to 2
when starting my FastAPI app within Docker.