Skip to content

Commit

Permalink
Fix HttpHook.run_with_advanced_retry document error (#24380)
Browse files Browse the repository at this point in the history
related: #9569
  • Loading branch information
chenglongyan committed Jun 13, 2022
1 parent 7729d1b commit 5ad42d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/providers/http/hooks/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def run_with_advanced_retry(self, _retry_args: Dict[Any, Any], *args: Any, **kwa
retry_args = dict(
wait=tenacity.wait_exponential(),
stop=tenacity.stop_after_attempt(10),
retry=requests.exceptions.ConnectionError,
retry=tenacity.retry_if_exception_type(Exception),
)
hook.run_with_advanced_retry(endpoint="v1/test", _retry_args=retry_args)
Expand Down

0 comments on commit 5ad42d7

Please sign in to comment.