Skip to content

Commit b734ad2

Browse files
authored
Composer: Add schedule to simple workflow. (#1520)
Without a schedule this DAG gets scheduled way too often when I upload it to a Cloud Composer environment.
1 parent 5abb012 commit b734ad2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

composer/workflows/simple.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
# DAG object.
4343
with models.DAG(
4444
'simple_greeting',
45+
schedule_interval=datetime.timedelta(days=1),
4546
default_args=default_dag_args) as dag:
4647
# [END composer_simple_define_dag]
4748
# [START composer_simple_operators]

0 commit comments

Comments
 (0)