MCPcopy Index your code
hub / github.com/coder/coder / forceWorkspaceProxyHealthUpdate

Method forceWorkspaceProxyHealthUpdate

enterprise/coderd/workspaceproxy.go:45–49  ·  view source on GitHub ↗

forceWorkspaceProxyHealthUpdate forces an update of the proxy health. This is useful when a proxy is created or deleted. Errors will be logged.

(ctx context.Context)

Source from the content-addressed store, hash-verified

43// forceWorkspaceProxyHealthUpdate forces an update of the proxy health.
44// This is useful when a proxy is created or deleted. Errors will be logged.
45func (api *API) forceWorkspaceProxyHealthUpdate(ctx context.Context) {
46 if err := api.ProxyHealth.ForceUpdate(ctx); err != nil && !database.IsQueryCanceledError(err) && !xerrors.Is(err, context.Canceled) {
47 api.Logger.Error(ctx, "force proxy health update", slog.Error(err))
48 }
49}
50
51// NOTE: this doesn't need a swagger definition since AGPL already has one, and
52// this route overrides the AGPL one.

Callers 6

NewFunction · 0.95
patchWorkspaceProxyMethod · 0.95
deleteWorkspaceProxyMethod · 0.95
postWorkspaceProxyMethod · 0.95

Calls 4

IsQueryCanceledErrorFunction · 0.92
ForceUpdateMethod · 0.80
IsMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected