You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/01/08 17:07:42 UTC
[GitHub] [airflow] gbonazzoli commented on issue #13476: Airflow 2.0.0 CLI "airflow dags trigger" doesn't support the --run_id parameter anymore
gbonazzoli commented on issue #13476:
URL: https://github.com/apache/airflow/issues/13476#issuecomment-756881532
I found the solution, the switch in Airflow 2.0.0 has been renamed in --run-id from --run_id.
You can close the issue.
`
root@new-airflow:~/airflow/dags# airflow dags trigger -h
usage: airflow dags trigger [-h] [-c CONF] [-e EXEC_DATE] [-r RUN_ID] [-S SUBDIR] dag_id
Trigger a DAG run
positional arguments:
dag_id The id of the dag
optional arguments:
-h, --help show this help message and exit
-c CONF, --conf CONF JSON string that gets pickled into the DagRun's conf attribute
-e EXEC_DATE, --exec-date EXEC_DATE
The execution date of the DAG
-r RUN_ID, --run-id RUN_ID
Helps to identify this run
-S SUBDIR, --subdir SUBDIR
File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'
`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org