registry.account-sync-all ​
Discover all repositories in a registry account and sync them locally
Discover accessible repositories and enqueue hydration for all of them.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Dag |
| Library | App-registry |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
registry_account_uuid | uuid | Yes | — | UUID of the RegistryAccount to discover and fan out hydration for |
organization_uuid | uuid | Yes | — | Organization UUID for tenant isolation |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
registry_account_uuid | uuid | Yes | — | Echoed registry account UUID |
organization_uuid | uuid | Yes | — | Echoed organization UUID |
completed_at | string | No | — | ISO-8601 completion timestamp |
failed_at | string | No | — | ISO-8601 failure timestamp |
discover_account | json | No | — | Output state_data from DAG step discover_account |
reset_account_on_failure | json | No | — | Output state_data from compensation step reset_account_on_failure |
enqueue_repository_syncs | json | No | — | Output state_data from DAG step enqueue_repository_syncs |
workflow_run_uuid | string | No | — | Engine DAG run UUID used to group child step states |
compensation_trigger | string | No | — | DAG compensation trigger |
comp_queue | list | No | — | Remaining compensation layer indexes queued by the engine |
comp_current_layer | integer | No | — | Current compensation layer index |
comp_retry_count | integer | No | — | Current compensation retry count |
failed_comp_step | string | No | — | Failed compensation step name when compensation is exhausted |
comp_failure_reason | string | No | — | Failure reason from the failed compensation step |
failure_reason | string | No | — | Engine failure reason, present only on failed terminal state |
failure_type | string | No | — | Engine failure type classification (ADR-015 E2) |
failed_action | string | No | — | Action name that caused the failure (ADR-015 E2) |
failed_at_state | string | No | — | State name where the failure occurred |
failed_step | string | No | — | Failed DAG step name when reported by the engine |
failed_layer | integer | No | — | 1-based failed DAG layer number emitted by the engine |
error | string | No | — | Unexpected error message |
error_type | string | No | — | Unexpected error class or type |
DAG Layers ​
| # | Layer | Steps | Compensation |
|---|---|---|---|
| 1 | discover | registry.account-sync | registry.account-reset-status |
| 2 | fanout | registry.enqueue-repository-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 |
|---|---|
registry.account-sync | discover_account |
registry.enqueue-repository-syncs | enqueue_repository_syncs |
registry.account-reset-status | reset_account_on_failure |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "registry.account-sync-all",
"initial_data": {
"registry_account_uuid": "value",
"organization_uuid": "value"
}
}