feat(coderd/database): add task status and status view#20235
Merged
mafredri merged 2 commits intoOct 13, 2025
Conversation
Member
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Oct 9, 2025
johnstcn
approved these changes
Oct 9, 2025
| agentState: database.WorkspaceAgentLifecycleStateReady, | ||
| appHealths: []database.WorkspaceAppHealth{database.WorkspaceAppHealthHealthy, database.WorkspaceAppHealthHealthy}, | ||
| expectedStatus: database.TaskStatusActive, | ||
| description: "Running job with ready agent and multiple healthy apps should be active", |
Member
There was a problem hiding this comment.
One healthy and one unhealthy app will be error, correct?
Member
Author
There was a problem hiding this comment.
Ah, looks like I've missed the removal of a multi-app tests. We don't care about non-task app health so they're pointless. I'll make the second one unhealthy though and that way we test that health is still OK for task.
DanielleMaywood
approved these changes
Oct 9, 2025
a05d8dc to
f805f37
Compare
38e1300 to
e9c6164
Compare
e9c6164 to
a98abac
Compare
f805f37 to
2bcc488
Compare
This change updates the `task_workspace_apps` table structure for improved linking to workspace builds and adds queries to manage tasks and a view to expose task status. Updates coder/internal#948 Supersedes #20212 Supersedes #19773
2bcc488 to
b3c188e
Compare
a98abac to
299a54a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This change updates the
task_workspace_appstable structure forimproved linking to workspace builds and adds queries to manage tasks
and a view to expose task status.
Updates coder/internal#948
Supersedes #20212
Supersedes #19773