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

Method Succeeded

coderd/database/dbfake/dbfake.go:252–259  ·  view source on GitHub ↗

Succeeded sets the job to succeeded status. This is the default status.

(opts ...BuilderOption)

Source from the content-addressed store, hash-verified

250// Succeeded sets the job to succeeded status.
251// This is the default status.
252func (b WorkspaceBuildBuilder) Succeeded(opts ...BuilderOption) WorkspaceBuildBuilder {
253 //nolint: revive // returns modified struct
254 b.jobStatus = database.ProvisionerJobStatusSucceeded
255 for _, opt := range opts {
256 opt(&b)
257 }
258 return b
259}
260
261// Failed sets the provisioner job to a failed state. Use WithJobError and
262// WithJobErrorCode options to set the error message and code. If no error

Calls

no outgoing calls