handle execptions during decode to avoid worker drain
This commit is contained in:
parent
62e9a39557
commit
5cc67aba15
@ -27,8 +27,11 @@ class WsjtQueueWorker(threading.Thread):
|
||||
def run(self) -> None:
|
||||
while self.doRun:
|
||||
(processor, file) = self.queue.get()
|
||||
try:
|
||||
logger.debug("processing file %s", file)
|
||||
processor.decode(file)
|
||||
except Exception:
|
||||
logger.exception("failed to decode job")
|
||||
self.queue.task_done()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user