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

Function JobLogMessages

coderd/jobreaper/detector.go:44–52  ·  view source on GitHub ↗

jobLogMessages are written to provisioner job logs when a job is reaped

(reapType ReapType, threshold time.Duration)

Source from the content-addressed store, hash-verified

42
43// jobLogMessages are written to provisioner job logs when a job is reaped
44func 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
54type jobToReap struct {
55 ID uuid.UUID

Callers 2

TestDetectorPushesLogsFunction · 0.92
reapJobFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestDetectorPushesLogsFunction · 0.74