Skip to content

Commit

Permalink
changed --is-active->--is-paused-upon-creation
Browse files Browse the repository at this point in the history
- dags are active by default.
  • Loading branch information
valayDave committed Apr 14, 2022
1 parent 5b98f93 commit 9f0dc1b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions metaflow/plugins/airflow/airflow_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ def make_flow(
"if this option is not specified",
)
@click.option(
"--set-active",
"--is-paused-upon-creation",
"is_paused",
default=False,
is_flag=True,
help="Sets the DAG as active on Airflow as default. "
"Overrides the `is_paused_upon_creation=False` in the Airflow DAG object.",
help="Sets `is_paused_upon_creation=True` for the Airflow DAG. ",
)
@click.option(
"--namespace",
Expand All @@ -139,7 +139,7 @@ def create(
file_path,
tags=None,
name=None,
set_active=False,
is_paused=False,
user_namespace=None,
max_workers=None,
worker_pool=None,
Expand All @@ -153,7 +153,7 @@ def create(
False,
file_path=file_path,
worker_pool=worker_pool,
set_active=set_active,
set_active=not is_paused,
)
compiled_dag_file = flow.compile()
if file_path is None:
Expand Down

0 comments on commit 9f0dc1b

Please sign in to comment.