SyncOperationsTable

table

Breakdex::DataStores::SyncOperationsTable

Queue of pending and in-progress sync operations across all providers

Each row is a single sync task — upload, download, verify, or delete. Operations are queued, prioritized, and retried on failure. The sync engine processes this table as a work queue, advancing status from queued through in_progress to completed or failed. Priority and retry logic ensure important assets sync first and transient errors are tolerated.

Relationships

Depends On 1

sync_operations_dao

Reads From 3

asset_manifest_tablesync_providers_tableasset_copies_table

Breaks If 3

operation_type_enum_changesstatus_enum_changesprovider_id_fk_integrity

Data Access

\u2190 Reads 3

asset_manifest_tablesync_providers_tableasset_copies_table

Answers

States

StateBehavior
failed With Retries Remaining
message: Operation failed but retry_count < max_retries — will be retried automatically
shows: retry_pending_indicator
in Progress
message: Actively transferring — bytes_transferred/total_bytes shows progress percentage
shows: progress_bar
permanently Failed
message: retry_count >= max_retries — requires manual intervention or config fix
shows: error_badge
queued
message: Operation waiting to be picked up by sync engine — ordered by priority
shows: pending_in_queue

Columns

NameTypeConstraints
idtextNOT NULL
content_hashtextNOT NULL
provider_idtextNOT NULL
operation_typetextNOT NULL ENUM: upload, download, verify, delete_remote
statustextNOT NULL DEFAULT: queued ENUM: queued, in_progress, completed, failed
priorityintNOT NULL DEFAULT: 0
retry_countintNOT NULL DEFAULT: 0
max_retriesintNOT NULL DEFAULT: 3
error_messagetext
bytes_transferredintNOT NULL DEFAULT: 0
total_bytesintNOT NULL DEFAULT: 0
created_atdatetimeNOT NULL DEFAULT: now
started_atdatetime
completed_atdatetime

Primary Key

id

Indexes

idx_sync_operations_status (status, priority)