You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "kiran2706 (via GitHub)" <gi...@apache.org> on 2025/05/23 13:13:27 UTC
Re: [I] Improve error message for Python decorator invoking function with same name as the task name [airflow]
kiran2706 commented on issue #49875:
URL: https://github.com/apache/airflow/issues/49875#issuecomment-2904382582
@ashb - Can I take a shot at this?
My plan is to implement it by intercepting function calls in TaskDecorator.__call__, and inspecting the call stack to detect potential self-invocations caused by naming collisions between the function and the task object.
If detected, I'll log a clear warning or optionally raise an informative error to help users debug it faster.
Let me know if you have any suggestions before I start
cc: @potiuk
--
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