Make the upcoming-photos queue length user-configurable
Build and push server image / build-and-push (push) Successful in 42s

Adds "Upcoming photos to show" to the config UI (queue_target_len, 5-50,
default 20, replacing the hardcoded QUEUE_TARGET_LEN constant). Lowering
it trims the queue immediately on next page load rather than waiting for
enough advances to consume the excess naturally; raising it tops back up
the same way, via a new photo_queue.sync_queue_length() called from
GET /api/queue.
This commit is contained in:
2026-07-19 01:03:05 -04:00
parent de41b00210
commit 42d7c09f97
5 changed files with 50 additions and 17 deletions
+1
View File
@@ -30,6 +30,7 @@ class FrameConfig(BaseModel):
current_asset_set_at: float = 0.0
queue: list[str] = []
queue_cursor: int = 0 # internal bookkeeping for sequential queue top-up; not user-facing
queue_target_len: int = 20 # how many upcoming photos to keep queued/shown in the web UI
def load() -> FrameConfig: