registry.enqueue-repository-syncs ​
Fan out repository sync workflows for a registry account
Start repository hydration workflows for all repositories in one account.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-registry |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
registry_account_uuid | uuid | Yes | — | UUID of the RegistryAccount whose repositories should be enqueued for sync |
organization_uuid | uuid | Yes | — | Organization UUID for tenant isolation |
workflow_run_uuid | string | No | — | Engine-stamped parent DAG run UUID when this workflow is started as a DAG step |
workflow_run_id | string | No | — | Engine-stamped workflow_run_id when invoked as a DAG step (ADR-015 E1) |
wait_for_children | boolean | No | — | When true, wait for child repository sync terminal states |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
registry_account_uuid | uuid | Yes | — | Echoed registry account UUID |
organization_uuid | uuid | Yes | — | Echoed organization UUID |
repository_candidate_count | integer | No | — | Number of repositories considered for fanout |
started_repository_sync_count | integer | No | — | Number of repository sync child workflows started |
skipped_repository_sync_count | integer | No | — | Number of repositories skipped because they were stale |
repository_sync_workflow_uuids | json | No | — | List of child workflow UUIDs started by this fanout |
pending_repository_sync_workflow_uuids | json | No | — | Child workflow UUIDs still waiting for terminal callback |
completed_repository_sync_workflow_uuids | json | No | — | Child workflow UUIDs that completed successfully |
failed_repository_sync_workflow_uuids | json | No | — | Child workflow UUIDs that failed |
failed_repository_sync_failures | json | No | — | Bounded failure summaries from failed child repository sync workflows |
completed_repository_sync_count | integer | No | — | Number of child repository sync workflows that completed successfully |
failed_repository_sync_count | integer | No | — | Number of child repository sync workflows that failed |
fanout_started_at | string | No | — | ISO-8601 fanout start timestamp |
completed_at | string | No | — | ISO-8601 completion timestamp |
failed_at | string | No | — | ISO-8601 failure timestamp |
workflow_run_uuid | string | No | — | Engine-stamped parent DAG run UUID when this workflow is started as a DAG step |
workflow_run_id | string | No | — | Engine-stamped workflow_run_id when invoked as a DAG step (ADR-015 E1) |
wait_for_children | boolean | No | — | When true, wait for child repository sync terminal states |
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 |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
initiated | Yes | No | — | fanout | — |
fanout | No | No | — | — | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
initiated | fanout | fanout | — |
fanout | child_done | fanout | — |
fanout | child_failed | fanout | — |
fanout | complete | completed | — |
fanout | fail_children | failed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "registry.enqueue-repository-syncs",
"initial_data": {
"registry_account_uuid": "value",
"organization_uuid": "value"
}
}