Skip to content

feat(coderd): add support for sending batched agent metadata #10223

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 1 commit into from
Oct 13, 2023

Conversation

mafredri
Copy link
Member

Part of #9782

Copy link
Member Author

@mafredri mafredri force-pushed the mafredri/feat-coderd-add-batched-agent-metadata branch 2 times, most recently from 155664f to 3c65ed1 Compare October 12, 2023 08:25
@mafredri mafredri force-pushed the mafredri/feat-coderd-add-batched-agent-metadata branch from 3c65ed1 to 9cb5404 Compare October 12, 2023 10:26
// @Success 204 "Success"
// @Router /workspaceagents/me/metadata/{key} [post]
// @x-apidocgen {"skip": true}
func (api *API) workspaceAgentPostMetadataDeprecated(rw http.ResponseWriter, r *http.Request) {
Copy link
Member

Choose a reason for hiding this comment

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

Would it be worthwhile dropping a WARN log advising operators to restart the workspace?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good question. What if it's a workspace that is running something semi-critical and can't be shut down for a week? We'd potentially be spamming WARN every second :/

Copy link
Member

@johnstcn johnstcn Oct 12, 2023

Choose a reason for hiding this comment

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

Fair point! I figure expecting a workspace to be restarted at least once a release is not unreasonable.

Copy link
Member

@johnstcn johnstcn left a comment

Choose a reason for hiding this comment

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

This looks OK to me, but might be good to get a second approval.

Copy link
Member

@mtojek mtojek left a comment

Choose a reason for hiding this comment

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

I haven't found anything concerning or blocking 👍

@mafredri mafredri force-pushed the mafredri/feat-coderd-add-batched-agent-metadata branch from 9cb5404 to dc89ae8 Compare October 13, 2023 13:09
@mafredri mafredri merged commit 7eeba15 into main Oct 13, 2023
@mafredri mafredri deleted the mafredri/feat-coderd-add-batched-agent-metadata branch October 13, 2023 13:37
Copy link
Member Author

Merge activity

@github-actions github-actions bot locked and limited conversation to collaborators Oct 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants