Skip to content

Add debug logging to job queue pg_notify callback#2454

Open
mpscholten wants to merge 1 commit intomasterfrom
fix/job-notify-debug-logging
Open

Add debug logging to job queue pg_notify callback#2454
mpscholten wants to merge 1 commit intomasterfrom
fix/job-notify-debug-logging

Conversation

@mpscholten
Copy link
Member

Summary

  • Log at debug level when a pg_notify notification is received by the job worker
  • Warn when a notification is dropped because the TBQueue is full
  • Helps diagnose amitaibu/ihp-sensors#18 — with DEBUG=1, we can see whether notifications reach the callback at all

Related: amitaibu/ihp-sensors#18

Test plan

  • With DEBUG=1, verify "Received pg_notify for " appears when a job is created
  • Without DEBUG, verify no extra log output
  • 🤖 Generated with Claude Code

Log when a pg_notify notification is received and warn when a
notification is dropped due to a full queue. This helps diagnose
cases where jobs are picked up slowly — if "Received pg_notify"
doesn't appear with DEBUG=1, the issue is in the PGListener or
PostgreSQL notification path rather than the worker/dispatcher.

Related: amitaibu/ihp-sensors#18

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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

Comments