Skip to content

Commit 2811ab6

Browse files
authored
chore: fix workspace proxy flake (coder#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

+1-1
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)