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

Method PendingRuns

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

Source from the content-addressed store, hash-verified

298}
299
300func (s schedulerTaskSource) PendingRuns(ctx context.Context) ([]schedulerpkg.RunSnapshot, error) {
301 runs, err := s.store.ListTaskRunsByStatus(ctx, []taskpkg.RunStatus{taskpkg.TaskRunStatusQueued})
302 if err != nil {
303 return nil, err
304 }
305 snapshots, err := s.joinRunsWithTasks(ctx, runs)
306 if err != nil {
307 return nil, err
308 }
309 return s.filterPausedRuns(ctx, snapshots)
310}
311
312func (s schedulerTaskSource) ActiveRuns(ctx context.Context) ([]taskpkg.Run, error) {
313 return s.store.ListTaskRunsByStatus(ctx, []taskpkg.RunStatus{

Callers

nothing calls this directly

Calls 3

joinRunsWithTasksMethod · 0.95
filterPausedRunsMethod · 0.95
ListTaskRunsByStatusMethod · 0.65

Tested by

no test coverage detected