collinpowerkariman commented on issue #45475:
URL: https://github.com/apache/airflow/issues/45475#issuecomment-2580908721
I think this happen because of the `callers` attribute was set outside of
the gevent's loop, i think changing the way `callers` is set to this should fix
it, i haven't try this but once i have the time i will and report back.
```
class ExecutorSafeguard:
"""
The ExecutorSafeguard decorator.
Checks if the execute method of an operator isn't manually called outside
the TaskInstance as we want to avoid bad mixing between decorated and
classic operators.
"""
test_mode = conf.getboolean("core", "unit_test_mode")
_sentinel = local()
@classmethod
def decorator(cls, func):
if not hasattr(_sentinel, "callers"):
cls._sentinel.callers = {}
```
--
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]