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

main
Rob Hudson 2 years ago committed by GitHub
parent 47b384d412
commit f158fe7ba1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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:

Loading…
Cancel
Save