You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Retrieving logs for previous task attempts uses the wrong task instance ID #51525
The URL template for log retrieval for task instance attempts uses the current TI ID from the task_instance table, not the TI ID for the attempt itself (which is now in the TI history table). This breaks log retrieval if providing a non-default log_filename_template which references the ID e.g. {{ ti.id }}.
What you think should happen instead?
The log retrieval logic should set the TI ID in the template expansion to the ID of the actual attempt.
How to reproduce
Set the log filename template to something non-default including {{ ti.id }}. Run a task and validate logs can be retrieved. Clear the task instance and try to retrieve logs for the previous attempt.
Activity
sunank200 commentedon Jun 9, 2025
I can take a look at this @phanikumv