MCPcopy Create free account
hub / github.com/ScrapeGraphAI/scrapecraft / get_workflow_history

Function get_workflow_history

backend/app/api/workflow.py:169–182  ·  view source on GitHub ↗

Get workflow transition history.

(
    pipeline_id: str,
    manager: WorkflowManager = Depends(get_manager)
)

Source from the content-addressed store, hash-verified

167
168@router.get("/workflow/{pipeline_id}/history")
169async def get_workflow_history(
170 pipeline_id: str,
171 manager: WorkflowManager = Depends(get_manager)
172):
173 """Get workflow transition history."""
174 workflow = manager.get_workflow(pipeline_id)
175 if not workflow:
176 raise HTTPException(status_code=404, detail="Workflow not found")
177
178 return {
179 "transitions": [t.dict() for t in workflow.phase_transitions],
180 "modifications": workflow.user_modifications,
181 "approvals": [a.dict() for a in workflow.approval_history]
182 }
183
184
185@router.get("/workflow/{pipeline_id}/phase-options")

Callers

nothing calls this directly

Calls 1

get_workflowMethod · 0.45

Tested by

no test coverage detected