← Home

Blogs

November 12, 2026 · hamim

Problem Journal : Persistent Runtime Socket Worker Registration and Stale Worker Slots

An issue in the Persistent Runtime where socket based queue consumers can encounter a startup timing race between tick execution and worker registration. The Tick Controller may execute before workers establish their WebSocket connections resulting in rejected executions and stale worker-slot registrations in Redis. These stale reservations can prevent newly connected workers from immediately processing jobs causing repeated empty ticks until the registrations are released or expire.

Potential BugWorker LifecyclePersistent RuntimeRace ConditionPulsarQueue Execution

November 12, 2026 · hamim

Solution Design : Persistent Runtime Socket Worker Lifecycle and Tick Coordination

A proposed approach to coordinate tick execution with socket worker availability in the Persistent Runtime. It introduces a state-machine-based execution gate driven by worker connection lifecycle events, alongside event-triggered worker-slot reconciliation. The goal is to ensure tick execution reflects actual consumer availability and newly connected workers can utilize available execution capacity without waiting for stale Redis registrations to expire.

PulsarPersistent RuntimeSocket WorkersTick ControllerState MachineRedisArchitecture