Created
November 9, 2019 10:54
-
-
Save Chestermozhao/e5ffe6fe5e8bc8ddc86b1bd1058c4dfb to your computer and use it in GitHub Desktop.
airflow default_args
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default_args = { | |
"owner": "airflow", | |
# 何時開始這個cronjob | |
"start_date": airflow.utils.dates.days_ago(2), | |
# 何時結束 | |
#"end_date": datetime(2019, 12, 30), | |
# 昨天失敗今天就不會跑了 | |
"depends_on_past": False, | |
# 失敗會通知的email | |
"email": ["xxxx@gmail.com"], | |
"email_on_failure": False, | |
"email_on_retry": False, | |
# retry times | |
"retries": 1, | |
# timespan between workflow | |
"retry_delay": timedelta(minutes=5), | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment