Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 70a84c3

Browse files
authoredMar 20, 2023
fix: override depends_on_past's dag level value (#762)
1 parent 2616593 commit 70a84c3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎ext/scheduler/airflow2/resources/base_dag.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"queue": "{{ .Metadata.Airflow.Queue }}",
4343
{{- end }}
4444
"owner": {{.Job.Owner | quote}},
45-
"depends_on_past": False,
45+
"depends_on_past": {{ if .Job.Behavior.DependsOnPast }}True{{- else -}}False{{- end -}},
4646
"retries": {{ if gt .Job.Behavior.Retry.Count 0 -}} {{.Job.Behavior.Retry.Count}} {{- else -}} DAG_RETRIES {{- end}},
4747
"retry_delay": {{ if gt .Job.Behavior.Retry.Delay.Nanoseconds 0 -}} timedelta(seconds={{.Job.Behavior.Retry.Delay.Seconds}}) {{- else -}} timedelta(seconds=DAG_RETRY_DELAY) {{- end}},
4848
"retry_exponential_backoff": {{if .Job.Behavior.Retry.ExponentialBackoff -}}True{{- else -}}False{{- end -}},

‎ext/scheduler/airflow2/resources/expected_compiled_template.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"optimus_hostname": "http://airflow.example.io"
3737
},
3838
"owner": "mee@mee",
39-
"depends_on_past": False,
39+
"depends_on_past": True,
4040
"retries": 4,
4141
"retry_delay": timedelta(seconds=DAG_RETRY_DELAY),
4242
"retry_exponential_backoff": True,

0 commit comments

Comments
 (0)
Please sign in to comment.