goflow
goflow copied to clipboard
[Discussion] Workflow rollback support
in my case, i want to use goflow to create some resources on a public cloud. like creating a cloud vm with public ip.
- create a vm using cloud openapi
- wait the status of vm is running
- create a public ip using cloud openapi
- wait the status of public ip is available
- bind the public ip with vm
- other steps
i want
- if I cancel the workflow(like run
flow.cancel()
), workflow can free the created resources(vm,public ip etc) - if one step failed, workflow can free the created resources(vm,public ip etc)