MCPcopy
hub / github.com/wavetermdev/waveterm / startJobLogCleanup

Function startJobLogCleanup

cmd/wsh/cmd/wshcmd-connserver.go:98–115  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96}
97
98func startJobLogCleanup() {
99 go func() {
100 defer func() {
101 panichandler.PanicHandler("startJobLogCleanup", recover())
102 }()
103
104 time.Sleep(JobLogCleanupDelay)
105
106 cleanupOldJobLogs()
107
108 ticker := time.NewTicker(JobLogCleanupInterval)
109 defer ticker.Stop()
110
111 for range ticker.C {
112 cleanupOldJobLogs()
113 }
114 }()
115}
116
117func getRemoteDomainSocketName() string {
118 homeDir := wavebase.GetHomeDir()

Callers 3

serverRunRouterFunction · 0.85
serverRunNormalFunction · 0.85

Calls 3

PanicHandlerFunction · 0.92
cleanupOldJobLogsFunction · 0.85
StopMethod · 0.65

Tested by

no test coverage detected