Apache Airflow version
3.0.1
If "Other Airflow 2 version" selected, which one?
No response
What happened?
related: #50908
details: #50908 (comment)
cc. @bugraoz93 (comment)
What you think should happen instead?
With --action_on_existence fail, request should return 200 OK with right results.errors / results.success. But, empty
How to reproduce
When importing variables with --action_on_existence flag set to fail, overwrite, or skip,
the API responds 200 OK, but both results.success and results.errors are empty.
This makes it impossible to determine whether the existing variables were handled as expected.
Operating System
osx
Versions of Apache Airflow Providers
No response
Deployment
Other
Deployment details
No response
Anything else?
Reproduction Steps
- Pre-condition: Two variables already exist in Airflow
[
{"key": "foo", "value": "1"},
{"key": "bar", "value": "2"}
]
- Prepare import file (vars.json) containing the same keys:
[
{"key": "foo", "value": "99"},
{"key": "bar", "value": "88"}
]
- Run CLI:
uv run airflowctl variables import vars.json --action_on_existence fail
You'll found empty success/errors.
Are you willing to submit PR?
Code of Conduct
Apache Airflow version
3.0.1
If "Other Airflow 2 version" selected, which one?
No response
What happened?
related: #50908
details: #50908 (comment)
cc. @bugraoz93 (comment)
What you think should happen instead?
With --action_on_existence fail, request should return 200 OK with right results.errors / results.success. But, empty
How to reproduce
When importing variables with
--action_on_existenceflag set to fail, overwrite, or skip,the API responds
200 OK, but bothresults.successandresults.errorsare empty.This makes it impossible to determine whether the existing variables were handled as expected.
Operating System
osx
Versions of Apache Airflow Providers
No response
Deployment
Other
Deployment details
No response
Anything else?
Reproduction Steps
[ {"key": "foo", "value": "1"}, {"key": "bar", "value": "2"} ][ {"key": "foo", "value": "99"}, {"key": "bar", "value": "88"} ]You'll found empty success/errors.
Are you willing to submit PR?
Code of Conduct