Skip to content

app.integration_sync_runs

TableRow level security on

Sync runs of a connection (Section 17): what moved, how many attempts it took and why it failed. A retryable failure moves the run to Retrying with exponential backoff until max_attempts, then Failed. One active run per connection and scope; the idempotency key makes enqueueing safe to repeat.

Primary key: id

Columns of app.integration_sync_runs
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org, derived from app.integration_connections on insert; never accepted from the caller and never changed.References app.organizations.id
integration_connection_iduuidNoConnection synced.References app.integration_connections.id
project_iduuidYesProject the run is limited to, when it is.References app.projects.id
sync_scopeapp.integration_sync_scopeNoWhat the run moves; belongs to the connection's category.
directionapp.integration_sync_directionNoInbound, Outbound or Two Way.
sync_run_stateapp.integration_sync_run_stateNoRun state. Changes only through the sync RPCs.
idempotency_keytextNoCaller key that makes enqueueing idempotent per connection.
subject_entityapp.integration_entityYesKind of the one local row the run works on, when it works on one (a payroll run for Payroll Export).
subject_iduuidYesLocal row the run works on, checked to exist in the same org.
source_uritextYesPlatform storage path of the file the run imports (a ticketing CSV), when it imports one.
attemptsmallintNoAttempts started so far.
max_attemptssmallintNoAttempts allowed before the run fails for good (1 to 10).
next_attempt_attimestamp with time zoneYesWhen a Queued or Retrying run is due.
started_attimestamp with time zoneYesWhen the current or last attempt started.
finished_attimestamp with time zoneYesWhen the run reached Succeeded, Failed or Canceled.
cursor_beforetextYesProvider cursor or watermark the run started from.
cursor_aftertextYesProvider cursor or watermark the next run starts from.
items_readintegerNoItems read from the source.
items_writtenintegerNoItems created or changed at the destination.
items_skippedintegerNoItems unchanged since the last sync.
items_failedintegerNoItems that failed; each has a row in app.integration_sync_errors.
error_codetextYesRule code of the last attempt's failure.
error_messagetextYesProvider message of the last attempt's failure.
job_iduuidYesLatest integration.sync job on the platform job queue (app.job_queue) for the run's next attempt.
deleted_attimestamp with time zoneYesSoft delete time. A row with deleted_at set is ignored by every access helper.
created_attimestamp with time zoneNoWhen the row was inserted. Set by the database.
created_byuuidYesPerson who inserted the row, or null for a platform process. Set by the database.References app.people.id
updated_attimestamp with time zoneNoWhen the row last changed. Set by the database.
updated_byuuidYesPerson who last changed the row, or null for a platform process. Set by the database.References app.people.id