Skip to content

server, controller: stop reporting failures as Ready conditions - #785

Merged
yongruilin merged 1 commit into
google:mainfrom
yongruilin:ax-remove-substrate-unavailable
Nov 26, 2026
Merged

yongruilin merged 1 commit into
google:mainfrom
yongruilin:ax-remove-substrate-unavailable

Conversation

@yongruilin

Copy link
Copy Markdown
Collaborator

A task no longer gets a Ready condition that describes a failed call: the task manager only returns its errors, and a read that cannot reach Substrate returns the task without live status. Fixes #695.

  • A read that cannot reach Substrate takes the second of the two options in Remove ReasonSubstrateUnavailable: return Substrate failures as errors, not as state #695: GetTask and ListTasks still succeed, and ax get shows the state as Unknown as before.
  • ReasonSubstrateUnavailable and ReasonInvalidResources are removed. The other failure reasons stay for Workspaces, which store them.
  • Nothing stored or returned the task manager's reasons any more, so callers see no difference there. Its tests now check that a transient error stays transient.

The task manager only returns its errors, and a read that cannot reach
Substrate returns the task without live status. Fixes google#695.
@yongruilin

Copy link
Copy Markdown
Collaborator Author

@rakyll whether a failed ax resume should still store QUEUED, the question from #698 left open. I will open a draft for it.

@rakyll rakyll left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice!

@yongruilin
yongruilin merged commit 550f8fe into google:main Nov 26, 2026
11 checks passed
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.

Remove ReasonSubstrateUnavailable: return Substrate failures as errors, not as state

2 participants