Skip to content

Commit

Permalink
BACKOFF_DURATION_INT = 2
Browse files Browse the repository at this point in the history
  • Loading branch information
talebzeghmi committed Jan 10, 2024
1 parent b713171 commit a6749f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion metaflow/plugins/aip/aip_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
S3_SENSOR_RETRY_COUNT = 7
PVC_CREATE_RETRY_COUNT = 7
EXIT_HANDLER_RETRY_COUNT = 7
BACKOFF_DURATION_INT = "2"
BACKOFF_DURATION_INT = 2
BACKOFF_DURATION = f"{BACKOFF_DURATION_INT}m"
RETRY_BACKOFF_FACTOR = 3 # 2 * 3 * 3 * 3 = 54 minutes

Expand Down
2 changes: 1 addition & 1 deletion metaflow/plugins/aip/exit_handler_decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def wrapped(*args, **kwargs):

def exit_handler_retry(
times: int = EXIT_HANDLER_RETRY_COUNT,
minutes_between_retries: int = int(BACKOFF_DURATION_INT),
minutes_between_retries: int = BACKOFF_DURATION_INT,
retry_backoff_factor: int = RETRY_BACKOFF_FACTOR,
):
"""
Expand Down

0 comments on commit a6749f9

Please sign in to comment.