You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "vincbeck (via GitHub)" <gi...@apache.org> on 2023/05/26 18:39:20 UTC
[GitHub] [airflow] vincbeck commented on a diff in pull request #31571: AWS system test example_dynamodb_to_s3: add logs when retry
vincbeck commented on code in PR #31571:
URL: https://github.com/apache/airflow/pull/31571#discussion_r1207190857
##########
tests/system/providers/amazon/aws/example_dynamodb_to_s3.py:
##########
@@ -51,6 +55,8 @@
@tenacity.retry(
stop=tenacity.stop_after_attempt(5),
wait=tenacity.wait_exponential(min=5),
+ before=before_log(log, logging.INFO),
+ before_sleep=before_sleep_log(log, logging.WARNING),
Review Comment:
`before` is before an attempt so nothing anormal here. `before_sleep` happens between a fail and a sleep, hence the warn here :) [See doc](https://tenacity.readthedocs.io/en/latest/#before-and-after-retry-and-logging)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org