Pierre CORBEL
11/13/2023, 3:15 PMSelf-Hosted server availability and flow run failover
Hello there 👋,
Setup ✅
I have a setup where I launch flow in an EKS env via k8s jobs.
I initially have the flow runs without any prefect server setup.
They were running fine locally but I didn't have any method to store logs, have observability, etc...
I have setup a prefect-server via an helm chart.
Everything run fine, the flow point to my server and I now have access to the whole feature-set of Prefect server with a self-hosted server.
My question is the following 🙋♂️
When my self-hosted server isn't available for any reason, the flow fails without even starting. I got the following error.
RuntimeError: Cannot create flow run. Failed to reach API at <http://prefect-server.prefect-staging.svc.cluster.local:4200/api/>.
Is there a possibility for the flow to still launch themselves "blindly" (like before without the server setup) if the server isn't available?
Like a failover variable?
Thanks a lot and have a nice day ☀️