Skip to content
Proud to collaborate with Microsoft for Startups

agents._infra-cost-sync.persist ​

Sum persisted AgentInfraCostEntry rows and update AgentSession infra_cost_usd

Update AgentSession.infra_cost_usd from persisted AgentInfraCostEntry rows.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-agents
Version1.0

Triggers ​

SourceEndpoint / EventDescription
INTERNALdag.stepInternal step — invoked by the agents.infra-cost-sync DAG

Input Schema ​

FieldTypeRequiredDefaultDescription
workflow_run_uuidstringNo—DAG-stamped parent run id (auto-injected by the engine)
workflow_run_idstringNo——
organization_uuidstringYes——
sessionslistNo——
aws_costs_fetchedintegerNo——
gcp_costs_fetchedintegerNo——
do_costs_fetchedintegerNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
errorstringNo——
error_typestringNo——
failed_atstringNo——
failed_at_statestringNo——
failed_layerjsonNo——
failed_stepstringNo——
failure_reasonstringNo——
sessions_updatedjsonNo——
total_infra_costs_persistedjsonNo——
delivery_costs_recordedjsonNo——
delivery_costs_failedjsonNo——
workflow_run_uuidjsonNo——
workflow_run_idstringNo——
organization_uuidjsonNo——
sessionsjsonNo——
aws_costs_fetchedjsonNo——
gcp_costs_fetchedjsonNo——
do_costs_fetchedjsonNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—run—
runNoNo—complete—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
initiatedrunrun—
runcompletecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "agents._infra-cost-sync.persist",
  "initial_data": {
    "organization_uuid": "value"
  }
}