Skip to content

Offline Sync: server jobs stay "queued" 0% forever, Pending grows every ~10s, and job-status polling floods 429s (persists after full reinstall) #21279

Closed

Description

@robertoeisenlohr

Summary

On a fresh install, Offline Sync never makes progress: every uploaded chunk's server job stays queued with processedSegments: 0 / totalSegments: 0, the Pending count grows by about one chunk every 10 s while the pendant listens, and the app polls GET /v2/sync-local-files/{job_id} continuously, receiving HTTP 429 on almost every request. Live transcription works normally at the same time. Related: #21278 (phone-call live transcription stuck on "Reconnecting").

Environment

  • Omi app 1.0.558 (build 1400), Android, Samsung Galaxy Z Fold7 (SM-F966U), Android build CP2A.260605.016
  • Omi DevKit 2 (Seeed XIAO BLE Sense), firmware 2.0.10
  • Settings: Store Audio on Phone = Off, Store Audio on Cloud = Off

Clean-state steps already taken

  1. Cleared app cache and cleared all app data.
  2. Uninstalled the app, waited 10 minutes.
  3. Installed a fresh copy from Google Play, signed in, re-paired the pendant.

The problem reproduced immediately on the fresh install, so it is not a stale local backlog.

What I see (screenshots in the first comment)

  • 23:42 local: Offline Sync shows Processing 0/110 · 0%, Pending 116, Synced 4.
  • 23:46 local: Processing 0/138 · 0%, Pending 144, Synced 4. New 10 s items keep appearing, first as "Waiting to sync", then "Uploaded · processing on Omi", and none ever complete.
  • 23:46 local: Listening · Pendant screen shows my speech transcribed within seconds, so the live /v4/listen path works on this account.

Debug log evidence (exported from the app)

Log A, 2026-10-12 03:03–03:13 UTC (10 min), before reinstall:

  • 3,222 fetch_sync_job_status events with httpStatus: 429, outcome: transient, peaking at 18 requests per second.
  • 181 reconcile_poll non-terminal results, all serverStatus: queued, processedSegments: 0, totalSegments: 0.
  • About 2,650 distinct job IDs being polled.
  • wal_admission_pressure: cap: 720, retained_count about 14,750.
  • sdcard_ble_download_started (343 MB opus), then WARN ... TimeoutException: SD card read stalled 15 s later.

Log B, 2026-10-12 03:42–03:47 UTC (5 min), after reinstall:

  • 426 fetch_sync_job_status responses with HTTP 429 (outcome: transient), about 1.4 per second.
  • 138 reconcile_poll non-terminal results, all serverStatus: queued, 0/0 segments.
  • 13 local_upload_started / 12 local_upload_finished with batchesUploaded: 1, batchesFailed: 0. Uploads succeed; server-side processing never starts.
  • Repeated "Sync Phase -1: Uploading live-capture phone files first" followed by "coordinated recording transfer completed with no new conversations".

Code observations (main branch)

  1. Why Pending grows while live works: LocalWalSyncImpl.confirmSessionTranscription() keeps any chunk that the saved transcript does not cover (_keepForTranscriptRepair sets status = miss, keptForTranscriptRecovery = true), so silence/background chunks are queued for a repair upload. That is reasonable as a safety net, but combined with a server queue that never drains, Pending grows without bound during normal wear.
  2. 429 handling: on current main, syncJobFetchOutcomeForStatusCode(429) returns throttled and _reconcileUploadedWals() is serial and should stop the pass on throttling. My build 1400 logs every 429 as outcome: transient and keeps polling, so either the released build predates that fix or the throttled path is not reached. Please confirm which release includes it.
  3. Server side: GET /v2/sync-local-files/{job_id} returns 429 from admit_sync_job_poll(uid), and the jobs that are reachable report queued with 0/0 segments indefinitely. It looks like the jobs are never dispatched to a worker for this account (/v2/sync-jobs/run?).

Expected

  • Uploaded repair chunks are processed (or acknowledged as empty) so Pending drains.
  • On 429, the client backs off per Retry-After instead of polling continuously.
  • If jobs cannot be processed, the UI shows an error instead of "Processing 0%" forever.

Questions for maintainers

  • Can you check the server-side sync job queue for my account? Jobs created after 2026-10-12 03:42 UTC are all stuck in queued.
  • Is there a supported way to discard "Uploaded · processing on Omi" items from the app? Manage Storage → Delete Pending only removes miss items.

I can provide the full device diagnostics export and both debug logs on request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions