Omar Hamad
12/07/2023, 4:45 PMalex
12/07/2023, 4:47 PMflow.serve
as a simpler alternative to running a Docker worker. The first two sections of this guide are a good walkthrough of how to do that.Omar Hamad
12/07/2023, 4:47 PMalex
12/07/2023, 4:49 PMOmar Hamad
12/07/2023, 4:49 PMOmar Hamad
12/07/2023, 4:49 PMOmar Hamad
12/07/2023, 4:50 PMalex
12/07/2023, 4:53 PMflow.serve,
you wouldn’t need to create a work pool. Is there something about your use case that requires a work pool?Omar Hamad
12/07/2023, 4:54 PMalex
12/07/2023, 4:55 PMflow.serve
. The Docker container(s) hosting your server script would run in your environment and Prefect won’t have access to the code.Omar Hamad
12/07/2023, 5:06 PMOmar Hamad
12/07/2023, 5:06 PMalex
12/07/2023, 6:17 PMPREFECT_API_URL
and PREFECT_API_KEY
as environment variables on your Docker container.