Support to have an eventual phase that can be run at the end of every action #1220
Replies: 4 comments 17 replies
-
Hi @pavannd1 @ihcsim
Having the eventual phse this way won't require any additional logic to make sure that eventual phase is actually running at the very end. Otherwise if we include a field in |
Beta Was this translation helpful? Give feedback.
-
I somehow still think that we don't need pre hook because of below reasons
I also don't think we have specified or used pre hooks like this before (in other blueprints) and changing that is going to be problem with consistency. What do you think @pavannd1 @ihcsim . |
Beta Was this translation helpful? Give feedback.
-
Hi guys :) I was asked by @glothriel to prepare short summary based on our use cases of blueprints. So let's get started use case based on our "restore" action: note:
If restore of database will fail due to any reason our custom operator is not running which means that part of our application is not working correctly, and we need to manually restore scale of our custom operator use case based on our "backup" action: Having this in mind all our backup actions in blueprint look like:
So if backup phase will fail, we are left with: failed actionsets (that are potentially piling up) and potential unused trash data inside restic repository. Of course next successful backup would fix this issue but what if there is a bug and backup is failing few times? this could lead to more trash data inside restic repo. Having special "finally" phase that would fire, regardless backup failed or not would fix above case |
Beta Was this translation helpful? Give feedback.
-
This is implemented in #1297. |
Beta Was this translation helpful? Give feedback.
-
@glothriel, was kind enough give this feedback to have an eventual phase for every action to make sure we are able to cleanup the resources if they were created in previous phases.
I am creating this thread to continue the discussion and if you have any other ideas around it and then we can add this to the roadmap.
Beta Was this translation helpful? Give feedback.
All reactions