Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task link fixed when tasks are in Deferred state. #27

Merged
merged 4 commits into from
Aug 7, 2024
Merged

Conversation

DFINITYManu
Copy link
Collaborator

@DFINITYManu DFINITYManu commented Aug 7, 2024

Whereas before we were updating the subnet link to the task when we updated the state, now we update the subnet link to point to the task logs when the actual state of the task corresponds to the expected state after updating. Since tasks are processed in topological order, the latest "active" task wins the link.

What this does in effect is, e.g., if the rollout is waiting for a vote (wait_for_revision_election is in state Deferred), now we link to the task wait_for_revision_election, instead of its predecessor (in state Complete) task create_proposal_if_none_exists. This makes sense because the running task (Deferred is a form of running) is no longer the predecessor of create_proposal_if_none_exists, and also as an operator you want to inspect the log of the currently running task, not the prior successfully finished one.

Before:

image

After:

image

Will roll out later today.

Whereas before we were updating the subnet link to the task when
we updated the state, now we update the subnet link to point to the
task logs when the actual state of the task corresponds to the
expected state after updating.  Since tasks are processed in
topological order, the latest "active" task wins the link.

What this does in effect is, e.g., if the rollout is waiting for
a vote (`wait_for_revision_election` is in state `Deferred`), now
we link to the task `wait_for_revision_election`, instead of its
predecessor (in state `Complete`) task `create_proposal_if_none_exists`.
This makes sense because the running task (`Deferred` is a form of
running) is no longer the predecessor of `create_proposal_if_none_exists`.

Will roll out later today.
@DFINITYManu DFINITYManu requested a review from a team as a code owner August 7, 2024 10:35
Copy link
Member

@sasa-tomic sasa-tomic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch, thanks.

@DFINITYManu DFINITYManu merged commit 83f72ad into main Aug 7, 2024
6 checks passed
@DFINITYManu DFINITYManu deleted the note branch August 7, 2024 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants