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

Function JobIsInsufficientQuotaErrorCode

codersdk/provisionerdaemons.go:188–190  ·  view source on GitHub ↗

JobIsInsufficientQuotaErrorCode returns whether the error is an insufficient quota error. This can indicate to consumers that they should explain quota recovery options instead of treating the failure as a generic build error.

(code JobErrorCode)

Source from the content-addressed store, hash-verified

186// quota error. This can indicate to consumers that they should explain quota
187// recovery options instead of treating the failure as a generic build error.
188func JobIsInsufficientQuotaErrorCode(code JobErrorCode) bool {
189 return string(code) == runner.InsufficientQuotaErrorCode
190}
191
192// ProvisionerJob describes the job executed by the provisioning daemon.
193type ProvisionerJob struct {

Callers 1

buildFailureToolResponseFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected