MCPcopy Create free account
hub / github.com/coder/coder / hasPendingWorkLocked

Method hasPendingWorkLocked

codersdk/agentsdk/logs.go:461–471  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

459}
460
461func (l *LogSender) hasPendingWorkLocked() bool {
462 for _, q := range l.queues {
463 if time.Since(q.lastFlush) > flushInterval {
464 return true
465 }
466 if q.flushRequested {
467 return true
468 }
469 }
470 return false
471}
472
473func (l *LogSender) getPendingWorkLocked() (src uuid.UUID, q *logQueue) {
474 // take the one it's been the longest since we've flushed, so that we have some sense of

Callers 1

SendLoopMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected