Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b734ad2

Browse filesBrowse files
authored
Composer: Add schedule to simple workflow. (GoogleCloudPlatform#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
Copy full SHA for b734ad2

File tree

Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed

‎composer/workflows/simple.py

Copy file name to clipboardExpand all lines: composer/workflows/simple.py
+1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.