Skip to content

Commit

Permalink
Allow for empty list retry delays (#15870)
Browse files Browse the repository at this point in the history
  • Loading branch information
cicdw authored Oct 30, 2024
1 parent 4f1adbe commit 2421901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prefect/server/orchestration/core_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ async def before_transition(
run_count = context.run.run_count
delay = run_settings.retry_delay

if isinstance(delay, list):
if delay and isinstance(delay, list):
base_delay = delay[min(run_count - 1, len(delay) - 1)]
else:
base_delay = run_settings.retry_delay or 0
Expand Down

0 comments on commit 2421901

Please sign in to comment.