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)
| 43 | // forceWorkspaceProxyHealthUpdate forces an update of the proxy health. |
| 44 | // This is useful when a proxy is created or deleted. Errors will be logged. |
| 45 | func (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. |
no test coverage detected