-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix: set codersdk.Task current_state during task initialization #20692
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
Changes from 1 commit
6d099cb
7191e4b
eefbc3f
d391626
c6c5c7f
cf9a97e
306296a
f07e3d8
c7a0c14
b1cb7fe
0ae69ba
23bd215
a069cbf
9e9b80f
979e370
677339d
6582f80
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -374,6 +374,8 @@ func deriveTaskCurrentState( | |
| message = "Initializing workspace applications" | ||
| } | ||
| default: | ||
| // In case the workspace agent is not initializing, | ||
| // the overall task status should be updated accordingly | ||
| message = "Initializing workspace agent" | ||
| } | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we take into account the coder app status as well?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you mean
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was thinking about I'm not sure if we need to enrich
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Ah, I see. So this would be the case where the agent is ready but the app is still initializing, correct? Do you think it makes sense to get into that level of detail? We have different possible AppHealth statuses: I'm guessing only the
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Yep! 👍🏻
It would better reflect how we determine the tasks status in the
Correct. 👍🏻 We could consider
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Addressed in b1cb7fe |
||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should never happen, but the fallback is fine, should we log something if this happens?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this should never happen, similarly to the
"Initializing workspace applications"path. I think adding a comment here is enough for now. Addressed in 677339d