network.account-sync-all ​
Synchronize all network scopes and their detailed inventory
Discover scopes and fan out detailed scope hydration workflows.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Dag |
| Library | App-network |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
network_account_uuid | uuid | Yes | — | Public UUID of the NetworkAccount to sync |
organization_uuid | uuid | Yes | — | UUID of the organization that owns the account |
workflow_run_uuid | string | No | — | Engine-stamped parent run UUID (DAG step target) |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
network_account_uuid | uuid | No | — | — |
organization_uuid | uuid | No | — | — |
workflow_run_uuid | string | No | — | DAG run UUID; stamped by the engine's auto-generated 'start' transition (dag_workflow.action_start) which echoes input_data + workflow_run_uuid into state_data. |
discover_account | json | No | — | Result dict from the discover_account step |
enqueue_scope_syncs | json | No | — | Result dict from the enqueue_scope_syncs step |
reset_account_on_failure | json | No | — | Result dict from the compensation step (failure path) |
completed_at | string | No | — | — |
failed_at | string | No | — | — |
failure_reason | string | No | — | Engine-stamped human-readable failure reason |
failed_at_state | string | No | — | Engine-stamped state when the workflow failed |
failed_step | string | No | — | Engine-stamped step name (DAG path) |
failed_layer | integer | No | — | Engine-stamped layer index (DAG path) |
error | string | No | — | Engine-stamped exception message |
error_type | string | No | — | Engine-stamped exception class name |
DAG Layers ​
| # | Layer | Steps | Compensation |
|---|---|---|---|
| 1 | discover | network.account-sync | network.account-reset-status |
| 2 | fanout | network.enqueue-scope-syncs | — |
Execution Flow ​
Compensation ​
When any layer fails, its compensation steps run in reverse order to roll back the work completed so far.
Sub-workflows ​
| Sub-workflow | Step name |
|---|---|
network.account-sync | discover_account |
network.enqueue-scope-syncs | enqueue_scope_syncs |
network.account-reset-status | reset_account_on_failure |
Outcomes ​
| Outcome | Type | Description | State Data Keys |
|---|---|---|---|
synced | SUCCESS | Synchronize all network scopes and their detailed inventory | — |
failed | FAILURE | Network workflow failed | failure_reason |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "network.account-sync-all",
"initial_data": {
"network_account_uuid": "value",
"organization_uuid": "value"
}
}