-
Notifications
You must be signed in to change notification settings - Fork 6
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
Handle either tolerated_failure_count or tolerated_failure_percentage #284
Conversation
My brain is having trouble with ||= with booleans for some reason, but I think this is good. |
29f095c
to
c045c07
Compare
Yeah it is funny how used to |
c045c07
to
369d341
Compare
@@ -110,13 +110,18 @@ def success?(context) | |||
total = contexts.count | |||
|
|||
return true if num_failed.zero? || total.zero? | |||
return true if tolerated_failure_percentage && tolerated_failure_percentage == 100 | |||
return false if tolerated_failure_count.nil? && tolerated_failure_percentage.nil? |
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.
can this be a configuration error and not a runtime error?
UPDATE: I guess maybe it is alright to leave as is
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.
This isn't a payload validation, this is saying if there are any failures in the sub workflows and no tolerated_failure_* has been provided then the state has failed
Added - Add WorkflowBase base class for Workflow (#279) - Add tool for using the aws stepfunctions simulator (#244) - Implement Map state (#184) - Add Map State Tolerated Failure (#282) - Run Map iterations in parallel up to MaxConcurrency (#283) - Implement Parallel State (#291) Changed - More granular compare_key and determine path at initialization time (#274) - For Choice validation, use instance variables and not payload (#277) - Return ExceedToleratedFailureThreshold if ToleratedFailureCount/Percentage is present (#285) Fixed - Fix case on log messages (#280) - Handle either ToleratedFailureCount or ToleratedFailurePercentage (#284)
Follow-up to #282 (comment) to handle both ToleratedFailureCount and ToleratedFailurePercent present