-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix remediated task with retry #200
Conversation
Fix issue when a task that has a transition on failure will also traverse the transition on retry. The issue is caused by the recursion on update_task_state. There should be a return in the recursive call.
Codecov Report
@@ Coverage Diff @@
## master #200 +/- ##
=======================================
Coverage 94.04% 94.04%
=======================================
Files 41 41
Lines 2735 2735
Branches 545 545
=======================================
Hits 2572 2572
Misses 100 100
Partials 63 63
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good. Passed the scenario that caused me to report issue. Re-tested with and without retries and all went fine.
@@ -1,6 +1,14 @@ | |||
Changelog | |||
========= | |||
|
|||
In Development |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll take it to st2 v3.2.0
@m4dcoder I guess we'll release v1.1.1
orquesta once its merged to include in st2 dependencies?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. I'll do a release of v1.1.1.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
we're using the stackstorm-ha to deploy our cluster (https://github.com/StackStorm/stackstorm-ha) - once this is merged, how do we pick up the change? |
@soumyabk |
It's a bit different in stackstorm-ha Helm chart context. @soumyabk Because We'll need to get this patch merged and then include into |
Fix issue when a task that has a transition on failure will also traverse the transition on retry. The issue is caused by the recursion on update_task_state. There should be a return in the recursive call.