diff --git a/tests/ci/workflow_approve_rerun_lambda/app.py b/tests/ci/workflow_approve_rerun_lambda/app.py index be5a3d2c5cc..9cea6db3da2 100644 --- a/tests/ci/workflow_approve_rerun_lambda/app.py +++ b/tests/ci/workflow_approve_rerun_lambda/app.py @@ -22,8 +22,12 @@ SUSPICIOUS_PATTERNS = [ "release", ] +# Number of retries for API calls. MAX_RETRY = 5 -MAX_WORKFLOW_RERUN = 7 + +# Number of times a check can re-run as a whole. +# It is needed, because we are using AWS "spot" instances, that are terminated very frequently. +MAX_WORKFLOW_RERUN = 20 WorkflowDescription = namedtuple( "WorkflowDescription",