You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove deprecated apply_default decorator from HexOperator
Description
When using the airflow_provider_hex package, the following deprecation warning is being generated:
[2024-09-07T13:43:27.523+0000] {logging_mixin.py:188} WARNING - /usr/local/airflow/.local/lib/python3.11/site-packages/airflow_provider_hex/operators/hex.py:11 RemovedInAirflow3Warning: This decorator is deprecated.
In previous versions, all subclasses of BaseOperator must use apply_default decorator for the `default_args` feature to work properly.
In current version, it is optional. The decorator is applied automatically using the metaclass.
This warning indicates that the apply_default decorator used in the HexOperator class (located in /usr/local/airflow/.local/lib/python3.11/site-packages/airflow_provider_hex/operators/hex.py at line 11) is deprecated and no longer necessary in the current version of Airflow.
Expected Behavior
The HexRunProjectOperator should not use the deprecated apply_default decorator, as it's now automatically applied by the metaclass in Airflow.
Proposed Solution
Remove the @apply_default decorator from the HexOperator class in the hex.py file.
Steps to Reproduce
Install the airflow_provider_hex package
Use the HexRunProjectOperator in an Airflow DAG
Run the DAG or perform a task that involves the HexOperator
Observe the deprecation warning in the logs
The text was updated successfully, but these errors were encountered:
Remove deprecated
apply_default
decorator from HexOperatorDescription
When using the airflow_provider_hex package, the following deprecation warning is being generated:
This warning indicates that the
apply_default
decorator used in theHexOperator
class (located in/usr/local/airflow/.local/lib/python3.11/site-packages/airflow_provider_hex/operators/hex.py
at line 11) is deprecated and no longer necessary in the current version of Airflow.Expected Behavior
The
HexRunProjectOperator
should not use the deprecatedapply_default
decorator, as it's now automatically applied by the metaclass in Airflow.Proposed Solution
Remove the
@apply_default
decorator from theHexOperator
class in thehex.py
file.Steps to Reproduce
HexRunProjectOperator
in an Airflow DAGHexOperator
The text was updated successfully, but these errors were encountered: