EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit 387559f5 authored by Lubomir Dolezal's avatar Lubomir Dolezal
Browse files

switch order of queue,value

parent 1f34a5ab
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ def run_daemon(config, host, port, listen_queue, listen_md_queue, write_queue):
logger.debug("waiting for redis queue '%s'..." % listen_queue)
while True:
# fetch an item from the queue to be preprocessed
value, queue = client.brpop([listen_queue, listen_md_queue])
queue, value = client.brpop([listen_queue, listen_md_queue])
file_paths = []
# start the preprocessing on that file
if queue == listen_queue:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment