Skip to content

fix upload route priority - #31

Merged
fleetingbytes merged 2 commits into
masterfrom
fix-upload-route-priority
Nov 30, 2026
Merged

fleetingbytes merged 2 commits into
masterfrom
fix-upload-route-priority

Conversation

@fleetingbytes

Copy link
Copy Markdown
Owner
  • fix: queue whole routes before the next (per-route Athena priority)
  • fix: detect uploaded segments by path presence, not array length

Athena processes lower priority numbers first and only has 99 levels.
Previous sequential ranking mixed routes once a route exceeded the limit
or when routes were enqueued separately.

Batches are still sorted by route → segment → log type, but every file
of the same route now receives the same priority (route rank, 1..=99).
Athena therefore finishes one route completely before starting the next.
Within a route insertion order is preserved via created_at.

Queue tab display sort is updated to match (route first for both active
and pending items) so the list reflects the intended device order.

Documented in TDR-007.
RouteFiles arrays are lists of signed URLs containing the storage key
`{route_ts}/{n}/{filename}`, not dense prefixes. Length-based checks
(`n < array.len()`) treated already-present segments as missing when
gaps existed, so the same files were re-queued and lcLFWD stayed
partial even after the Athena queue drained.

missing_route_paths, upload_status_symbols, and the fully-uploaded
cache now use the same contains-needle test as comma Connect.
When the upload queue goes from non-empty to empty the TUI also
re-fetches route files so status updates without a manual Ctrl-r.

Documented in TDR-007.
@fleetingbytes
fleetingbytes merged commit 40789c3 into master Nov 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant