MCPcopy Create free account
hub / github.com/compozy/agh / ActiveRuns

Method ActiveRuns

internal/daemon/scheduler_runtime.go:312–318  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

310}
311
312func (s schedulerTaskSource) ActiveRuns(ctx context.Context) ([]taskpkg.Run, error) {
313 return s.store.ListTaskRunsByStatus(ctx, []taskpkg.RunStatus{
314 taskpkg.TaskRunStatusClaimed,
315 taskpkg.TaskRunStatusStarting,
316 taskpkg.TaskRunStatusRunning,
317 })
318}
319
320func (s schedulerTaskSource) RecoverExpiredRunLeases(
321 ctx context.Context,

Callers

nothing calls this directly

Calls 1

ListTaskRunsByStatusMethod · 0.65

Tested by

no test coverage detected