Skip to content

[flytepropeller] Preserve deck URI when a node is aborted#7611

Open
moldhouse wants to merge 1 commit into
flyteorg:masterfrom
moldhouse:fix/preserve-deck-uri-on-abort
Open

[flytepropeller] Preserve deck URI when a node is aborted#7611
moldhouse wants to merge 1 commit into
flyteorg:masterfrom
moldhouse:fix/preserve-deck-uri-on-abort

Conversation

@moldhouse

Copy link
Copy Markdown

Why are the changes needed?

Aborting a running node wipes its Flyte Deck from the UI, even though the deck was showing a moment earlier and deck.html still exists in blob storage. Abort takes a different path than the other terminal states: nodeExecutor.Abort builds its own NodeExecutionEvent with no deck URI, and flyteadmin then overwrites the stored URI with that empty value.

This is a hard blocker for eager workflows. Each eager child is its own execution, and the eager task's deck is the only place the UI surfaces the children and their links. Aborting the parent, the normal way to stop a run, wipes the deck and with it the trail to every child execution.

What changes were proposed in this pull request?

On abort, re-attach the deck URI to the ABORTED event when the deck file exists, using the same GetDeckPath() the running task writes to. This mirrors the recovery path, which already checks the deck file and re-attaches it. It only sets the URI when the file is present, so it never resurrects a deck for a disabled or never-published task, and a Head error is tolerated so abort always proceeds.

How was this patch tested?

Added a unit test that drives Abort and asserts the emitted event carries the deck URI; confirmed it fails without the change and passes with it. The full flytepropeller/pkg/controller/nodes suite passes.

Fixes #7610

Abort builds its own node event and never set DeckUri, so aborting a
run wiped the deck from the UI even though deck.html still existed.
Re-attach it when the file is present, matching the recovery path.

Fixes flyteorg#7610

Signed-off-by: Moritz Althaus <moritzalthaus@gmx.de>
@github-actions github-actions Bot added the flyte label Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant