LamaAni / KubernetesJobOperator

An airflow operator that executes a task in a kubernetes cluster, given a kubernetes yaml configuration or an image refrence.
57 stars 8 forks source link

Investigate warnings #48

Closed brandonruhl closed 3 years ago

brandonruhl commented 3 years ago

Describe the bug │ [2021-08-03 22:14:52,663[] WARNING - /usr/local/lib/python3.8/dist-packages/airflow/providers/cncf/kubernetes/backcompat/backwards_compat_converters.py:26 DeprecationWarning: This module is deprecated. Please use kubernetes.client.models.V1Volume. │ │ [2021-08-03 22:14:52,665[] WARNING - /usr/local/lib/python3.8/dist-packages/airflow/providers/cncf/kubernetes/backcompat/backwards_compat_converters.py:27 DeprecationWarning: This module is deprecated. Please use kubernetes.client.models.V1VolumeMount.

To Reproduce Steps to reproduce the behavior: Look at scheduler logs

Expected behavior should not see warnings

brandonruhl commented 3 years ago

Also seeing this WARNING - /usr/local/lib/python3.8/dist-packages/airflow_kubernetes_job_operator/kubernetes_job_operator.py:43 DeprecationWarning: This decorator is deprecated. ││ In previous versions, all subclasses of BaseOperator must use apply_default decorator for thedefault_args feature to work properly. ││ In current version, it is optional. The decorator is applied automatically using the metaclass.

LamaAni commented 3 years ago

Hi Brandon. Tnx. PR to come.

LamaAni commented 3 years ago

Issue fixed in pr: https://github.com/LamaAni/KubernetesJobOperator/pull/49