Day 023 / Frappe / Worker Queues

Worker Queue Reader

View source ↗Scroll to explore ↓
Worker Queue Reader project cover
/ Overview

A read-only Python CLI that summarizes sanitized Frappe queue snapshots, worker coverage and stale backlogs without connecting to Redis.

NameWorker Queue Reader

ClientIndependent daily build

IndustriesDeveloper and operations tooling

DateDay 023 · September 22, 2026

/ Challenge

A growing Frappe queue can mean ordinary backlog, a stale oldest job or no active worker coverage. Inspecting raw queue data can also expose job arguments and operational secrets.

/ Provided services

Clear thinking.
Practical delivery.

01

Queue health summary

Combines pending counts, oldest-job age and active-worker coverage into a compact status for every supplied queue.

02

Privacy boundary

Reports only allowlisted operational facts and leaves job payloads, arguments and credentials outside the output.

03

Automation-ready behavior

Provides readable or JSON output with separate exit codes for clear state, attention required and invalid input.

Worker Queue Reader feature visual
/ Solution

Worker Queue Reader analyzes a supplied, sanitized JSON snapshot. It calculates queue depth, active-worker coverage and oldest-job age, then classifies each queue without connecting to Redis, executing Bench commands or mutating jobs.

/ Impact

Clear, backlog, stale and uncovered states

Timezone-aware oldest-job age

Only active workers count toward coverage

Arbitrary input fields omitted

Nine passing standard-library tests

/ Tech stack

Python standard library

Argparse, pathlib, JSON and timezone-aware datetime logic provide the full dependency-free CLI.

Frappe queue concepts

Models queue depth, worker subscriptions, active coverage and stale pending work from sanitized snapshots.

Unittest

Nine deterministic tests cover timestamps, queue states, worker status, totals, privacy, validation and CLI exits.

Next project

Scheduler Snapshot

View case study ↗