>_
.issue.db
/highway
Dashboard
Issues
Memory
Lessons
Audit Log
New Issue
Edit Issue #1035
Update issue details
Title *
Description
Found during #906. The activity worker LISTENs on jumper_highway_activity (#246). The only pg_notify on that channel is the trigger on jumper.r_highway_activity (migration 01KCFHD8B7H2NNKS17AHAH1PH8_highway_0_0_31_jumper_notify_triggers.sql:72); ActivityOperator inserts into highway.activity_queue, which has no notify trigger (submodule-aware grep of all migration roots). Evidence: the #906 scratch-DB e2e (scripts/verify_906/activity_worker_e2e_906.sh) ran 5 activities with DEBUG logging on for engine.services.activity_worker.worker: 0 'Woke via LISTEN/NOTIFY' lines, every claim came from the 0.5 s fallback poll (positive control: other DEBUG lines of the same logger, e.g. 'Submitted activity ... to bulkhead', are present). Consequence: pickup latency is the poll interval (1 s default), not <100 ms, and with [activity_worker] enable_fallback_polling=false the worker would never claim an activity. Fix direction: AFTER INSERT trigger on highway.activity_queue (and on status -> pending for retries) calling pg_notify('jumper_highway_activity', activity_id), via a migretti migration; red-first scratch-DB test with fallback polling disabled.
Priority
Low
Medium
High
Critical
Status
Open
In Progress
Closed
Won't Do
Due Date (YYYY-MM-DD)
Tags (comma separated)
Related Issues (IDs)
Enter IDs of issues related to this one. They will be linked as 'related'.
Update Issue
Cancel