Merge branch 'fix/RED-7388-nack-message-if-processing-failure' into 'master'
Adjust error handling of processing sub-process Closes RED-7388 See merge request redactmanager/image-classification-service!4
This commit is contained in:
commit
0efa2127d7
@ -17,9 +17,6 @@ def wrap_in_process(fn):
|
||||
process = multiprocessing.Process(target=process_fn, args=args, kwargs=kwargs)
|
||||
process.start()
|
||||
process.join()
|
||||
try:
|
||||
return return_queue.pop(0)
|
||||
except IndexError:
|
||||
logger.warning("No results returned by subprocess.")
|
||||
return return_queue.pop(0)
|
||||
|
||||
return wrapped_fn
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user