Skip to content

Commit

Permalink
CV2-3435 add processor queue prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
DGaffney committed Oct 11, 2023
1 parent 62fa98e commit c93e50a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/queue/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ def create(cls, input_queue_name: str = None, batch_size: int = 10):
Instantiate a queue. Must pass input_queue_name, output_queue_name, and batch_size.
Pulls settings and then inits instance.
"""
input_queue_name = get_setting(input_queue_name, "MODEL_NAME").replace(".", "__")
queue_prefix = get_setting("", "QUEUE_PREFIX").replace(".", "__")
input_queue_name = queue_prefix+get_setting(input_queue_name, "MODEL_NAME").replace(".", "__")
logger.info(f"Starting queue with: ('{input_queue_name}', {batch_size})")
return QueueProcessor(input_queue_name, batch_size)

Expand Down

0 comments on commit c93e50a

Please sign in to comment.