Skip to content
Discussion options

You must be logged in to vote

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:

  1. This might be expected behavior, since workers can run only a subset of workflows if they choose. So a worker not registering a workflow doesn't indicate that it should be deleted.
  2. Even if the workflow should be deleted, there might be old workers which still have the workflow registered and running. So even if we knew that it should be deleted, we don't know exactly when to delete it.

One pattern which can work is creating a "migration" file of sorts which uses the Hatchet API to remove workflows, cron…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@KyleKing
Comment options

@KyleKing
Comment options

Answer selected by KyleKing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants