I want that the task fails after 12 hours it started, I have set execution_timeout to 12 hours:
Operator is SQLSensor, since it sometimes lost connection and fails, I set the retries to 3.
However, because of the retries, task starts over after every timeout.
1: task started at 10:00
2: timeout at 22:00
3: then task started again at 22:01
I don't want this, how can I set total timeout for all retries?
log_sensor = SqlSensor(
task_id='log_sensor',
conn_id='mssql_etl',
sql=my_query,
retries=3,
execution_timeout=timedelta(hours=12),
dag=dag)