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

Method Canceled

coderd/database/dbfake/dbfake.go:241–248  ·  view source on GitHub ↗

Canceled sets the job to canceled status.

(opts ...BuilderOption)

Source from the content-addressed store, hash-verified

239
240// Canceled sets the job to canceled status.
241func (b WorkspaceBuildBuilder) Canceled(opts ...BuilderOption) WorkspaceBuildBuilder {
242 //nolint: revive // returns modified struct
243 b.jobStatus = database.ProvisionerJobStatusCanceled
244 for _, opt := range opts {
245 opt(&b)
246 }
247 return b
248}
249
250// Succeeded sets the job to succeeded status.
251// This is the default status.

Callers 2

createWorkspaceMethod · 0.80

Calls

no outgoing calls

Tested by 2

createWorkspaceMethod · 0.64