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

Method Active

codersdk/provisionerdaemons.go:109–113  ·  view source on GitHub ↗

Active returns whether the job is still active or not. It returns true if canceling as well, since the job isn't in an entirely inactive state yet.

()

Source from the content-addressed store, hash-verified

107// It returns true if canceling as well, since the job isn't
108// in an entirely inactive state yet.
109func (p ProvisionerJobStatus) Active() bool {
110 return p == ProvisionerJobPending ||
111 p == ProvisionerJobRunning ||
112 p == ProvisionerJobCanceling
113}
114
115const (
116 ProvisionerJobPending ProvisionerJobStatus = "pending"

Callers 2

checkRunningBuildMethod · 0.80
RunMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected