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.
()
| 107 | // It returns true if canceling as well, since the job isn't |
| 108 | // in an entirely inactive state yet. |
| 109 | func (p ProvisionerJobStatus) Active() bool { |
| 110 | return p == ProvisionerJobPending || |
| 111 | p == ProvisionerJobRunning || |
| 112 | p == ProvisionerJobCanceling |
| 113 | } |
| 114 | |
| 115 | const ( |
| 116 | ProvisionerJobPending ProvisionerJobStatus = "pending" |
no outgoing calls
no test coverage detected