The GitHub Actions job "Tests (AMD)" on airflow.git/oss/links-c-state-store has 
failed.
Run started by GitHub user 1fanwang (triggered by 1fanwang).

Head commit for run:
e2148a57ed1a00f8b9f02dc0e8201ab5fc848fc4 / 1fanwang <[email protected]>
Return each attempt's own URL from operator extra links

An operator extra link is cached as a single XCom row under the link's xcom_key,
and XComOperatorLink.get_link ignores the try_number on the TaskInstanceKey it 
is
given. A task's XComs are also cleared before every attempt, so that row only 
ever
holds whichever attempt ran last. Asking for an earlier attempt's link therefore
returns the latest attempt's URL, and the original attempt's logs cannot be 
reached
from the UI at all.

The worker now also writes each attempt's rendered link to the task state store,
which a retry does not clear, and the reader prefers that row. The XCom row is 
left
in place and is still the answer for links written before this change.

Reading goes through get_state_backend(), the same resolver the execution API 
uses,
so a deployment pointing [state_store] backend elsewhere keeps working.

Closes: #71471
Signed-off-by: 1fanwang <[email protected]>

Report URL: https://github.com/apache/airflow/actions/runs/31653942682

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to