Hi! I’m very new to Prefect. I’m trying to run some provisioning workflows using Prefect. Our application runs in Kubernetes environment. What is the best pattern to check if Prefect workflow app is alive? Are there any hooks for that? For example, if one of the database connection dropped, I want Kubernetes to know about that by failing Health check. Deploying k8s agent looks like overkill, UI will not be used. (basically, only core). Is there a simple way to check if app is alive?
Appreciate any help/advice !
1 year ago
Hi @Gleb Erokhin - I'm a little confused by your question; are you running Prefect Server (sans UI) and are looking for health checks on the various services in that stack? If so, most (if not all) services have pre-baked health checks, which you can view in the
docker compose file. If you're looking for health checks on Core-only (with no backend like Prefect Server or Cloud), flows using only Core are run in-process and so won't have any way of assessing health.
1 year ago
@nicholas Yes, I was looking for core-only health checks… Thanks a lot!