Stale workflows/cron jobs on worker registration #2768
-
|
We're in the process of evaluating Hatchet as a more performant alternative to Dagster and one of the features that I miss is how Dagster's orchestrator reflects code changes, but there is an obvious different in architecture (centralized definition vs. decentralized worker registration). Current behavior:
Compared to the Dagster model:
Questions:
I would appreciate guidance on whether this is the right approach or if there's built-in functionality we're missing or if I've overlooked some documentation or preexisting discussion! I recently joined the Discord server |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
My current plan is to add a step during deployment that uses the hatchet-sdk to turn off schedules and otherwise sync modifications to our workers in aggregate back to the control plane |
Beta Was this translation helpful? Give feedback.
-
|
Hey @KyleKing! This is a common ask, we're still figuring out the right path in this scenario. There are basically two reasons we can't clean up workflows that are removed from a worker:
One pattern which can work is creating a "migration" file of sorts which uses the Hatchet API to remove workflows, crons and schedules (zero-downtime migrations/database schemas are a good reference for these issues). We also have it on our backlog to set a configurable deletion window if a workflow is stale and unregistered on workers for a certain period of time, but I don't think this addresses the immediate concern here. Open to other ideas on what we could do here! |
Beta Was this translation helpful? Give feedback.
Hey @KyleKing! This is a common ask, we're still figuring out the right path in this scenario. There are basically two reasons we can't clean up workflows that are removed from a worker:
One pattern which can work is creating a "migration" file of sorts which uses the Hatchet API to remove workflows, cron…