Skip to content

Commit

Permalink
Update handlers.py
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorinManaila authored Nov 25, 2024
1 parent 415a4b0 commit d37f88c
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def create_handler(
return ProgressEvent(
status=OperationStatus.IN_PROGRESS,
resourceModel=model,
callbackDelaySeconds=60,
callbackDelaySeconds=30,
callbackContext=callback_context,
)
elif sub_status in ["failed", "error"]:
Expand All @@ -226,7 +226,7 @@ def create_handler(
return ProgressEvent(
status=OperationStatus.IN_PROGRESS,
resourceModel=model,
callbackDelaySeconds=60,
callbackDelaySeconds=30,
callbackContext=callback_context,
)

Expand Down Expand Up @@ -285,7 +285,7 @@ def create_handler(
return ProgressEvent(
status=OperationStatus.IN_PROGRESS,
resourceModel=model,
callbackDelaySeconds=60,
callbackDelaySeconds=30,
callbackContext=callback_context,
)

Expand Down Expand Up @@ -358,7 +358,7 @@ def delete_handler(
return ProgressEvent(
status=OperationStatus.IN_PROGRESS,
resourceModel=model,
callbackDelaySeconds=60, # Poll every 60 seconds
callbackDelaySeconds=30, # Poll every 30 seconds
callbackContext={"delete_in_progress": True},
)

Expand Down Expand Up @@ -398,7 +398,7 @@ def delete_handler(
return ProgressEvent(
status=OperationStatus.IN_PROGRESS,
resourceModel=model,
callbackDelaySeconds=60, # Poll every 60 seconds
callbackDelaySeconds=30, # Poll every 30 seconds
callbackContext={"delete_in_progress": True},
)
else:
Expand Down

0 comments on commit d37f88c

Please sign in to comment.