Airflow CTL Version
Latest stable version
Airflow CTL Command
airflow dags trigger --conf '{"my-key": "my-value"}' --dag-id "my-dag"
Keyring Backend / Version
keyrings.alt 5.0.2
Auth Type
username:password
What is the current behaviour?
I'm trying to trigger a DagRun from the CLI. I'm already logged in to airflow with airflow auth login --user etc.
When I'm giving the dag parameters to CLI with --conf, the CLI rejects them, saying that they can't be parsed. AI analysis tells me that the CLI tries to parse the --conf flag directly as python dictionary without parsing the JSON first. Here is the failing value for my case:
What is the expected results?
The command should trigger a DAG run with the given json config.
Anything else?
No response
Are you willing to submit PR?
Code of Conduct
Airflow CTL Version
Latest stable version
Airflow CTL Command
airflow dags trigger --conf '{"my-key": "my-value"}' --dag-id "my-dag"
Keyring Backend / Version
keyrings.alt 5.0.2
Auth Type
username:password
What is the current behaviour?
I'm trying to trigger a DagRun from the CLI. I'm already logged in to airflow with
airflow auth login --user etc.When I'm giving the dag parameters to CLI with
--conf, the CLI rejects them, saying that they can't be parsed. AI analysis tells me that the CLI tries to parse the --conf flag directly as python dictionary without parsing the JSON first. Here is the failing value for my case:airflow/airflow-core/src/airflow/cli/cli_config.py
Line 1304 in 8cd9232
What is the expected results?
The command should trigger a DAG run with the given json config.
Anything else?
No response
Are you willing to submit PR?
Code of Conduct