karenbraganz commented on PR #53435: URL: https://github.com/apache/airflow/pull/53435#issuecomment-3124501876
I was testing this PR out by repeatedly getting tasks stuck in queued. Initially, the task instances would get stuck in queued, fail, and the callbacks would run. After a few rounds of this, the below exception was raised: <img width="1798" height="730" alt="image" src="https://github.com/user-attachments/assets/217ef825-55b8-45a8-aa51-966a2bea3c10" /> According to the code, the session is not committed until after `_maybe_requeue_stuck_ti` completes running. Any idea what would cause the TaskInstance object to be detached from a session? As mentioned before, the code works as expected most of the time. This happens intermittently. -- 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]
