jobLogMessages are written to provisioner job logs when a job is reaped
(reapType ReapType, threshold time.Duration)
| 42 | |
| 43 | // jobLogMessages are written to provisioner job logs when a job is reaped |
| 44 | func JobLogMessages(reapType ReapType, threshold time.Duration) []string { |
| 45 | return []string{ |
| 46 | "", |
| 47 | "====================", |
| 48 | fmt.Sprintf("Coder: Build has been detected as %s for %.0f minutes and will be terminated.", reapType, threshold.Minutes()), |
| 49 | "====================", |
| 50 | "", |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | type jobToReap struct { |
| 55 | ID uuid.UUID |
no outgoing calls