fix(code):[Workday/XMatters] - Change retries and retry_delay (#2066)
* fix(code):Change retries and retry_delay * Update dags/eam_workday_xmatters_integration.py Co-authored-by: Alexander <anicholson@mozilla.com> * fix(code): Added import timedelta --------- Co-authored-by: Julio Cezar Moscon <jcmoscon@gmail.com> Co-authored-by: Alexander <anicholson@mozilla.com>
This commit is contained in:
Родитель
fe3de9b5df
Коммит
2d4eac6287
|
@ -1,4 +1,4 @@
|
|||
from datetime import datetime
|
||||
from datetime import datetime, timedelta
|
||||
|
||||
from airflow import DAG
|
||||
from airflow.providers.cncf.kubernetes.secret import Secret
|
||||
|
@ -117,7 +117,9 @@ default_args = {
|
|||
"owner": "jmoscon@mozilla.com",
|
||||
"emails": ["jmoscon@mozilla.com"],
|
||||
"start_date": datetime(2024, 1, 1),
|
||||
"retries": 0,
|
||||
"retries": 3,
|
||||
# wait 5 min before retry
|
||||
"retry_delay": timedelta(minutes=5),
|
||||
"on_failure_callback": create_jira_ticket,
|
||||
}
|
||||
tags = [Tag.ImpactTier.tier_3, Tag.Triage.record_only, Tag.Repo.airflow]
|
||||
|
|
Загрузка…
Ссылка в новой задаче