Skip to content

fix(api): Allow workspace agent coordinate to report disconnect #6152

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

Merged
merged 3 commits into from
Feb 10, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use ctx for publish
  • Loading branch information
mafredri committed Feb 10, 2023
commit 4ce0b84747e4ff22412abab1b30fe491e2823c4c
2 changes: 1 addition & 1 deletion coderd/workspaceagents.go
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ func (api *API) workspaceAgentCoordinate(rw http.ResponseWriter, r *http.Request
Valid: true,
}
_ = updateConnectionTimes(ctx)
_ = api.Pubsub.Publish(watchWorkspaceChannel(build.WorkspaceID), []byte{})
api.publishWorkspaceUpdate(ctx, build.WorkspaceID)
}()

err = updateConnectionTimes(ctx)
Expand Down