kalluripradeep commented on PR #67372: URL: https://github.com/apache/airflow/pull/67372#issuecomment-4772969056
@sagu2602 Yes — your scenario (attempt-4 fails while QUEUED, logs tab missing that attempt) is exactly what this PR fixes. When a task fails from `QUEUED` state, the scheduler's executor-event path calls `handle_failure()`. Previously, `TaskInstanceHistory` was only recorded when `ti.state == RUNNING`, so a QUEUED failure silently dropped the history row → the attempts tab in the UI had no entry → logs showed nothing. With this fix `prepare_db_for_next_try()` (which writes the `TaskInstanceHistory` row) is now called for `QUEUED`/`SCHEDULED`/`DEFERRED` states too, so attempt-4's hostname and dates will be recorded and the logs tab will show the attempt correctly. -- 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]
