registry.repository-sync ​
Synchronize images and versions for one registry repository
Synchronize tags and digests for one repository.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-registry |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
registry_repository_uuid | uuid | Yes | — | UUID of the RegistryRepository whose images and versions should be synced |
organization_uuid | uuid | Yes | — | Organization UUID for tenant isolation |
workflow_run_id | string | No | — | Engine-stamped workflow_run_id when invoked as a DAG step (ADR-015 E1) |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
registry_repository_uuid | uuid | Yes | — | Echoed registry repository UUID |
organization_uuid | uuid | Yes | — | Echoed organization UUID |
registry_account_uuid | uuid | No | — | UUID of the parent registry account |
repository_full_name | string | No | — | Full name (namespace/name) of the repository |
remote_version_count | integer | No | — | Number of remote image versions discovered |
remote_versions | list | No | — | Internal: remote versions carried between fetch and reconcile |
reconciled_image_count | integer | No | — | Number of image rows reconciled |
reconciled_version_count | integer | No | — | Number of image-version rows reconciled |
completed_at | string | No | — | ISO-8601 completion timestamp |
failed_at | string | No | — | ISO-8601 failure timestamp |
workflow_run_id | string | No | — | Engine-stamped workflow_run_id when invoked as a DAG step (ADR-015 E1) |
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 | — | prepare | — |
fetching | No | No | — | reconcile | — |
preparing | No | No | — | fetch_remote_versions | — |
reconciling | No | No | — | complete | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
initiated | prepare | preparing | — |
preparing | fetch_remote_versions | fetching | — |
fetching | reconcile | reconciling | — |
reconciling | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "registry.repository-sync",
"initial_data": {
"registry_repository_uuid": "value",
"organization_uuid": "value"
}
}