Skip to content

Commit bd6819a

Browse files
committed
Add logging to indicate worker is listening.
1 parent 4f26b11 commit bd6819a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dpq/commands.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ def inner_run(self, **options):
9090
cursor.execute("SET application_name TO %s", ['dpq#{}'.format(os.getpid())])
9191

9292
if self.listen:
93+
self.logger.info('Listening for queued tasks', extra={
94+
'channel': self.queue.notify_channel,
95+
})
9396
self.queue.listen()
9497
try:
9598

0 commit comments

Comments
 (0)