MCPcopy Create free account
hub / github.com/QuantumNous/new-api / notifySystemTaskRunner

Function notifySystemTaskRunner

service/system_task.go:116–121  ·  view source on GitHub ↗

notifySystemTaskRunner wakes the runner without blocking. If a wakeup is already pending it is a no-op, which is fine since one pass drains all work.

()

Source from the content-addressed store, hash-verified

114// notifySystemTaskRunner wakes the runner without blocking. If a wakeup is
115// already pending it is a no-op, which is fine since one pass drains all work.
116func notifySystemTaskRunner() {
117 select {
118 case systemTaskWakeup <- struct{}{}:
119 default:
120 }
121}
122
123func StartSystemTaskRunner() {
124 systemTaskRunnerOnce.Do(func() {

Callers 2

StartLogCleanupTaskFunction · 0.85
EnqueueSystemTaskFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected