MCPcopy Create free account
hub / github.com/ShipSecAI/studio / listRuns

Method listRuns

backend/src/workflows/workflows.service.ts:638–658  ·  view source on GitHub ↗
(
    auth?: AuthContext | null,
    options: {
      workflowId?: string;
      status?: ExecutionStatus;
      limit?: number;
    } = {},
  )

Source from the content-addressed store, hash-verified

636 }
637
638 async listRuns(
639 auth?: AuthContext | null,
640 options: {
641 workflowId?: string;
642 status?: ExecutionStatus;
643 limit?: number;
644 } = {},
645 ) {
646 const organizationId = this.requireOrganizationId(auth);
647 const runs = await this.runRepository.list({
648 ...options,
649 organizationId,
650 });
651 const summaries = await Promise.all(
652 runs.map((run) => this.buildRunSummary(run, organizationId)),
653 );
654
655 summaries.sort((a, b) => new Date(b.startTime).getTime() - new Date(a.startTime).getTime());
656 this.logger.log(`Loaded ${summaries.length} workflow run(s) for timeline`);
657 return { runs: summaries };
658 }
659
660 async listChildRuns(
661 parentRunId: string,

Callers 3

runStore.tsFile · 0.45
loadWorkflowFunction · 0.45
registerRunToolsMethod · 0.45

Calls 3

requireOrganizationIdMethod · 0.95
buildRunSummaryMethod · 0.95
listMethod · 0.65

Tested by

no test coverage detected