Skip to content

Commit

Permalink
Fix tasks.md -> retry handler (PrefectHQ#11633)
Browse files Browse the repository at this point in the history
  • Loading branch information
N-Demir authored Jan 13, 2024
1 parent 1b595cf commit e70ccf1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/concepts/tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,9 @@ def retry_handler(task, task_run, state) -> bool:
except httpx.ConnectError:
# Do not retry
return False

# For any other exception, retry
return True
except:
# For any other exception, retry
return True

@task(retries=1, retry_condition_fn=retry_handler)
def my_api_call_task(url):
Expand Down

0 comments on commit e70ccf1

Please sign in to comment.