fix: relay sync failures with delayed bounded retries #45

Merged
hodlbod merged 1 commits from userAdityaa/caravel:relay-sync-failures into master 2026-04-23 15:32:10 +00:00
Contributor

Problem

  • should_sync_relay_activity did not include fail_relay_sync.
  • There was no background retry path for failed relay syncs.
  • Relays could remain indefinitely unsynced after transient Zooid failures.

Solution

  • Include fail_relay_sync as a retry trigger in infra.
  • Schedule retries with exponential backoff (30s base, 900s max delay).
  • Stop retrying after 6 consecutive attempts.
  • On startup, schedule retries for relays with non-empty sync_error.
  • Skip scheduled retry if relay is already healthy (sync_error cleared).

closes #34

### Problem * `should_sync_relay_activity` did not include `fail_relay_sync`. * There was no background retry path for failed relay syncs. * Relays could remain indefinitely unsynced after transient Zooid failures. ### Solution * Include `fail_relay_sync` as a retry trigger in infra. * Schedule retries with exponential backoff (30s base, 900s max delay). * Stop retrying after 6 consecutive attempts. * On startup, schedule retries for relays with non-empty sync_error. * Skip scheduled retry if relay is already healthy (`sync_error` cleared). closes #34
userAdityaa added 1 commit 2026-04-23 11:36:35 +00:00
hodlbod merged commit 48f20dc1a5 into master 2026-04-23 15:32:10 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: coracle/caravel#45