Skip to content
Proud to collaborate with Microsoft for Startups

registry.enqueue-repository-syncs ​

Fan out repository sync workflows for a registry account

Start repository hydration workflows for all repositories in one account.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-registry
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
registry_account_uuiduuidYes—UUID of the RegistryAccount whose repositories should be enqueued for sync
organization_uuiduuidYes—Organization UUID for tenant isolation
workflow_run_uuidstringNo—Engine-stamped parent DAG run UUID when this workflow is started as a DAG step
workflow_run_idstringNo—Engine-stamped workflow_run_id when invoked as a DAG step (ADR-015 E1)
wait_for_childrenbooleanNo—When true, wait for child repository sync terminal states

Output Schema ​

FieldTypeRequiredDefaultDescription
registry_account_uuiduuidYes—Echoed registry account UUID
organization_uuiduuidYes—Echoed organization UUID
repository_candidate_countintegerNo—Number of repositories considered for fanout
started_repository_sync_countintegerNo—Number of repository sync child workflows started
skipped_repository_sync_countintegerNo—Number of repositories skipped because they were stale
repository_sync_workflow_uuidsjsonNo—List of child workflow UUIDs started by this fanout
pending_repository_sync_workflow_uuidsjsonNo—Child workflow UUIDs still waiting for terminal callback
completed_repository_sync_workflow_uuidsjsonNo—Child workflow UUIDs that completed successfully
failed_repository_sync_workflow_uuidsjsonNo—Child workflow UUIDs that failed
failed_repository_sync_failuresjsonNo—Bounded failure summaries from failed child repository sync workflows
completed_repository_sync_countintegerNo—Number of child repository sync workflows that completed successfully
failed_repository_sync_countintegerNo—Number of child repository sync workflows that failed
fanout_started_atstringNo—ISO-8601 fanout start timestamp
completed_atstringNo—ISO-8601 completion timestamp
failed_atstringNo—ISO-8601 failure timestamp
workflow_run_uuidstringNo—Engine-stamped parent DAG run UUID when this workflow is started as a DAG step
workflow_run_idstringNo—Engine-stamped workflow_run_id when invoked as a DAG step (ADR-015 E1)
wait_for_childrenbooleanNo—When true, wait for child repository sync terminal states
failure_reasonstringNo—Engine failure reason, present only on failed terminal state
failure_typestringNo—Engine failure type classification (ADR-015 E2)
failed_actionstringNo—Action name that caused the failure (ADR-015 E2)
failed_at_statestringNo—State name where the failure occurred
failed_stepstringNo—Failed DAG step name when reported by the engine
failed_layerintegerNo—1-based failed DAG layer number emitted by the engine
errorstringNo—Unexpected error message
error_typestringNo—Unexpected error class or type

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—fanout—
fanoutNoNo———
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
initiatedfanoutfanout—
fanoutchild_donefanout—
fanoutchild_failedfanout—
fanoutcompletecompleted—
fanoutfail_childrenfailed—
* (any state)failfailed—

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"
  }
}