Skip to content

Commit 2811ab6

Browse files
authored
chore: fix workspace proxy flake (#8755)
1 parent 5cfa708 commit 2811ab6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

enterprise/coderd/workspaceproxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import (
3434
// forceWorkspaceProxyHealthUpdate forces an update of the proxy health.
3535
// This is useful when a proxy is created or deleted. Errors will be logged.
3636
func (api *API) forceWorkspaceProxyHealthUpdate(ctx context.Context) {
37-
if err := api.ProxyHealth.ForceUpdate(ctx); err != nil && !xerrors.Is(err, context.Canceled) {
37+
if err := api.ProxyHealth.ForceUpdate(ctx); err != nil && !database.IsQueryCanceledError(err) && !xerrors.Is(err, context.Canceled) {
3838
api.Logger.Error(ctx, "force proxy health update", slog.Error(err))
3939
}
4040
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy