Skip to content

Commit

Permalink
step function handling of lambda resource not found error
Browse files Browse the repository at this point in the history
  • Loading branch information
SooLee committed Feb 27, 2020
1 parent 747e889 commit 689f5d5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion tibanna/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Version information."""

# The following line *must* be the last in the module, exactly as formatted:
__version__ = "0.15.2"
__version__ = "0.15.3"
25 changes: 13 additions & 12 deletions tibanna/stepfunction.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@


class StepFunctionUnicorn(object):
lambda_error_retry_condition = {
"ErrorEquals": [ "Lambda.ServiceException",
"Lambda.AWSLambdaException",
"Lambda.SdkClientException",
"Lambda.ResourceNotFoundException"],
"IntervalSeconds": 60,
"MaxAttempts": 6,
"BackoffRate": 2
}

sfn_run_task_retry_conditions = [
{
"ErrorEquals": ["DependencyStillRunningException"],
Expand All @@ -16,13 +26,9 @@ class StepFunctionUnicorn(object):
"MaxAttempts": 1008, # 1 wk
"BackoffRate": 1.0
},
{
"ErrorEquals": [ "Lambda.ServiceException", "Lambda.AWSLambdaException", "Lambda.SdkClientException"],
"IntervalSeconds": 60,
"MaxAttempts": 6,
"BackoffRate": 2
}
lambda_error_retry_condition
]

sfn_check_task_retry_conditions = [
{
"ErrorEquals": ["EC2StartingException"],
Expand All @@ -36,12 +42,7 @@ class StepFunctionUnicorn(object):
"MaxAttempts": 100000,
"BackoffRate": 1.0
},
{
"ErrorEquals": [ "Lambda.ServiceException", "Lambda.AWSLambdaException", "Lambda.SdkClientException"],
"IntervalSeconds": 60,
"MaxAttempts": 6,
"BackoffRate": 2
}
lambda_error_retry_condition
]

def __init__(self,
Expand Down

0 comments on commit 689f5d5

Please sign in to comment.