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 = multiprocessing.Process(target=process_fn, args=args, kwargs=kwargs)
|
||||||
process.start()
|
process.start()
|
||||||
process.join()
|
process.join()
|
||||||
try:
|
return return_queue.pop(0)
|
||||||
return return_queue.pop(0)
|
|
||||||
except IndexError:
|
|
||||||
logger.warning("No results returned by subprocess.")
|
|
||||||
|
|
||||||
return wrapped_fn
|
return wrapped_fn
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user