Skip to content

Commit 13fcebb

Browse files
committed
Add logging to indicate worker is listening.
1 parent b772f15 commit 13fcebb

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)