Offline Mode and Queue Management

May 30, 2026 | 5 min read

How Offline Queueing Works

When the Pyvorin API is unreachable, events are stored locally in:

~/.pyvorin/queue/

Each event is a JSON file with a timestamp and unique ID.

Queue Configuration

Config KeyDefaultDescription
queue_dir~/.pyvorin/queueStorage directory.
max_queue_size1000Max files before rotation.
queue_retention_days30How long to keep old events.

Manual Sync

pyvorin sync

Drains the offline queue and sends events to the server. Use this after restoring connectivity.

Disabling Offline Mode

pyvorin config-set offline_queue_enabled false

When disabled, events that cannot be sent immediately are dropped rather than queued.

Monitoring Queue Health

pyvorin doctor

Shows the current queue size and whether the queue directory is writable.