Update log string for better output when multiple queues (#1925)

This commit is contained in:
Rob Hudson 2023-05-24 19:08:17 -07:00 committed by GitHub
parent 47b384d412
commit f158fe7ba1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1274,7 +1274,7 @@ class Queue:
if timeout is not None: # blocking variant
if timeout == 0:
raise ValueError('RQ does not support indefinite timeouts. Please pick a timeout value > 0')
colored_queues = ''.join(map(str, [green(str(queue)) for queue in queue_keys]))
colored_queues = ', '.join(map(str, [green(str(queue)) for queue in queue_keys]))
logger.debug(f"Starting BLPOP operation for queues {colored_queues} with timeout of {timeout}")
result = connection.blpop(queue_keys, timeout)
if result is None: