You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "rahulgoyal2987 (via GitHub)" <gi...@apache.org> on 2024/12/06 17:16:43 UTC
Re: [PR] Fixed thread local _sentinel.callers defect and added test cases [airflow]
rahulgoyal2987 commented on code in PR #44646:
URL: https://github.com/apache/airflow/pull/44646#discussion_r1873706618
##########
airflow/models/baseoperator.py:
##########
@@ -364,6 +364,8 @@ def wrapper(self, *args, **kwargs):
sentinel = kwargs.pop(sentinel_key, None)
if sentinel:
+ if not getattr(cls._sentinel, "callers", None):
Review Comment:
@potiuk I have added test case. if someone will touch this code and do same mistake again then text case will fail.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org