Skip to content
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

Error after upgrading to airflow 2.3.3 #63

Closed
miv opened this issue Jul 20, 2022 · 2 comments
Closed

Error after upgrading to airflow 2.3.3 #63

miv opened this issue Jul 20, 2022 · 2 comments

Comments

@miv
Copy link

miv commented Jul 20, 2022

Describe the bug

Job can't start with error

Traceback (most recent call last):
  File "/home/airflow/.local/lib/python3.7/site-packages/airflow_kubernetes_job_operator/kubernetes_job_operator.py", line 368, in execute
    on_kube_api_event=lambda event: self.handle_kube_api_event(
  File "/home/airflow/.local/lib/python3.7/site-packages/airflow_kubernetes_job_operator/job_runner.py", line 302, in execute_job
    watchable_kinds = GetAPIVersions.get_existing_api_kinds(self.client, all_kinds)
  File "/home/airflow/.local/lib/python3.7/site-packages/airflow_kubernetes_job_operator/kube_api/queries.py", line 410, in get_existing_api_kinds
    return [k for k in all_kinds if k.api_version == "v1" or k.api_version in apis]
  File "/home/airflow/.local/lib/python3.7/site-packages/airflow_kubernetes_job_operator/kube_api/queries.py", line 410, in <listcomp>
    return [k for k in all_kinds if k.api_version == "v1" or k.api_version in apis]
TypeError: argument of type 'NoneType' is not iterable

To Reproduce

Run any job

Env:
Airflow docker 2.3.3

@LamaAni
Copy link
Owner

LamaAni commented Aug 17, 2022

Hi, sorry just saw this. I'll try and retest is when possible.

@LamaAni
Copy link
Owner

LamaAni commented Aug 17, 2022

Currently I cant reproduce this. Can you give more details? DId you change the kubeapi in any way? Did you add any special handlers?

@LamaAni LamaAni closed this as completed Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants