ashb commented on PR #37937:
URL: https://github.com/apache/airflow/pull/37937#issuecomment-2009058981
How expensive is looking a traceback at runtime? I wonder if instead we
could do something like this:
```python
__sentiel = object()
class BaseOperator:
def execute(self, ..., **kwargs):
if kwargs.pop("__sentinel", None) is not __sentiel:
# Warn/raise about calling execute in from outside of Airflow
```
That way we don't pay the cost of traceback which I worry would impact short
running tasks unduly.
--
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]