Charles
10/09/2024, 8:18 PMNate
10/09/2024, 8:32 PMCharles
10/09/2024, 9:11 PMprefect worker start
. The work pool is also a prefect managed workpool with one work queue (default) that houses all of the prefect workers.Nate
10/09/2024, 9:28 PMcmd.exe
is not what you want for a long-running service like a worker and the cause of this behavior
> When I press enter in the cmd window (hosting the worker), it all of a sudden starts working. But without it, it's all frozen
on unix systems, you'd use a thing like systemd
which google seems to be telling me that NSSM is the windows analogueCharles
10/09/2024, 9:41 PMNate
10/09/2024, 9:55 PMcan Prefect have a failover mechanism to reroute those sent deployments to another worker that may be workingthis would happen by default. any worker who is listening to
--pool some-pool
(from prefect worker start
command) will pick up run scheduled in that pool
the number one recommendation for robustness would be to use a tool that's meant to run a long-lived process as a service
since I'd guess using cmd.exe is analogous to running prefect worker start
on my laptop, ie if I close my laptop, the process stopsCharles
10/09/2024, 10:20 PMNate
10/09/2024, 10:24 PMNate
10/09/2024, 10:25 PMCharles
10/09/2024, 10:32 PM