flyctl icon indicating copy to clipboard operation
flyctl copied to clipboard

move some of plan.go into a proper FSM

Open billyb2 opened this issue 1 year ago • 0 comments

this doesn't involve too many code changes, more just shifting code around. the reason for doing this is that, if we can move as many partso f deploys as possible into an FSM, it lets us more easily resume deploys that failed, or from midway through a canceled deploy, or anywhere else in a deploy.

I want to make more granular FSM transitions for each individual machine too, which I'll either do in a future commit or a future PR. The more individual FSM states we can retry, the more granular 'resuming' we can do. If we can move other parts of deploys into an FSM, it also gives us the ability to resume those parts as well. Plus some extra super powers like easily cloning apps, more granular view of deploy failures in a way that we can retry locally, declaratively configuring a fly app, etc.

Change Summary

What and Why:

How:

Related to:


Documentation

  • [ ] Fresh Produce
  • [ ] In superfly/docs, or asked for help from docs team
  • [ ] n/a

billyb2 avatar Aug 20 '24 23:08 billyb2