HasFailed returns true when the job has completed with an error/failure.
()
| 48 | |
| 49 | // HasFailed returns true when the job has completed with an error/failure. |
| 50 | func (job Job) HasFailed() bool { |
| 51 | return job.State == constant.JobFailed |
| 52 | } |
| 53 | |
| 54 | // IsComplete returns true when the job has completed successfully. |
| 55 | func (job Job) IsComplete() bool { |
no outgoing calls
no test coverage detected