Saltar al contenido

app.integration_sync_runs

TablaSeguridad a nivel de fila activa

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.

Clave primaria: id

Columnas de app.integration_sync_runs
ColumnaTipoAdmite nulosDescripción
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org, derived from app.integration_connections on insert; never accepted from the caller and never changed.Hace referencia a app.organizations.id
integration_connection_iduuidNoConnection synced.Hace referencia a app.integration_connections.id
project_iduuidSíProject the run is limited to, when it is.Hace referencia a 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_entitySíKind of the one local row the run works on, when it works on one (a payroll run for Payroll Export).
subject_iduuidSíLocal row the run works on, checked to exist in the same org.
source_uritextSíPlatform 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 zoneSíWhen a Queued or Retrying run is due.
started_attimestamp with time zoneSíWhen the current or last attempt started.
finished_attimestamp with time zoneSíWhen the run reached Succeeded, Failed or Canceled.
cursor_beforetextSíProvider cursor or watermark the run started from.
cursor_aftertextSíProvider 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_codetextSíRule code of the last attempt's failure.
error_messagetextSíProvider message of the last attempt's failure.
job_iduuidSíLatest integration.sync job on the platform job queue (app.job_queue) for the run's next attempt.
deleted_attimestamp with time zoneSíSoft 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_byuuidSíPerson who inserted the row, or null for a platform process. Set by the database.Hace referencia a app.people.id
updated_attimestamp with time zoneNoWhen the row last changed. Set by the database.
updated_byuuidSíPerson who last changed the row, or null for a platform process. Set by the database.Hace referencia a app.people.id