cw-orchestrator icon indicating copy to clipboard operation
cw-orchestrator copied to clipboard

Resumable Deployment Observer

Open adairrr opened this issue 2 years ago • 0 comments

It would be beneficial to the developer experience if in-progress deployments were kept track of, and were able to be resumed at a given point if a step fails.

Right now, if you have a script that deploys many interlinked contracts and one of the deployments / actions fails, the script fails entirely with dangling contracts in an unknown state. With the deployment observer, the latest step and state would be known and could be resumed before the failure.

This would likely use the observer pattern where each step executing an action using the Boot ContractInstance would increment the step counter and save the state at that step. If a deployment "resumes" (via flag or otherwise) it would see that the step counter is > 0 and resume after the latest successful step.

adairrr avatar Dec 20 '22 10:12 adairrr