uranusjr commented on code in PR #76007:
URL: https://github.com/apache/airflow/pull/76007#discussion_r4478715462
##########
task-sdk/src/airflow/sdk/execution_time/context.py:
##########
@@ -526,6 +535,10 @@ def _set_variable(key: str, value: Any, description: str |
None = None, serializ
except Exception as e:
log.exception(e)
+ if value is None:
+ warnings.warn(_SET_VARIABLE_NONE_DEPRECATION,
RemovedInAirflow4Warning, stacklevel=3)
Review Comment:
I decided to change this to a FutureWarning subclass following the same
approach as #55881 to make this visible.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]