-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Airflow Python Client 2.6.2rc1 "get_tasks" errors out with execution_timeout cannot be None #85
Comments
This is due to https://github.com/apache/airflow-client-python/pull/82/files#diff-14fa48609e9762537714dd2528f40f8d036ef2e78fe63cd8a23e76fec1eb944f file I don't know why we have such a change. I tried regenerating the client multiple times but it appears to be the same everytime, 🤔 Wondering what could cause this diff, still investigating |
OK. Found it. It looks like in the past it's been manually patched (maybe @ephraimbuddy remembers more): I do not know that much about OpenAPI specs, but I think it's not a bug in generatio, but the issue is that our OpenAPI specification is wrong:
Should be:
This generates this code in models/task.py
Which seems pretty expected. We could again apply manual fix, but maybe more reasonable is to correct the specification. |
Yes. @potiuk . Sorry for being late here, I patch it with #76. |
Thanks guys. (I also agree that the origin of the problem seems like a bad OpenAPI spec). Closing, now that the issue is identified, and that the process has been updated (Thanks Ephraim) while we are not upgrading the generator version. I'm working on rc2. |
When running https://raw.githubusercontent.com/apache/airflow-client-python/main/dev/test_python_client.py with 2.6.2rc1 it fails with:
The same test run with python-test-client==2.6.1 succeeds
The text was updated successfully, but these errors were encountered: