Skip to content

airflow CTL --conf option can't parse input #67989

@atakanyenel

Description

@atakanyenel

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?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions