diff --git a/batch/batch/worker/worker.py b/batch/batch/worker/worker.py index c265e80564f..5315aa66e1e 100644 --- a/batch/batch/worker/worker.py +++ b/batch/batch/worker/worker.py @@ -1877,8 +1877,9 @@ async def on_completion(): raise except ContainerDeletedError as exc: log.info(f'Container {container} was deleted while running.', exc) - except Exception: - log.exception(f'While running container: {container}') + except Exception as e: + if not user_error(e): + log.exception(f'While running container: {container}') async def run(self): async with self.worker.cpu_sem(self.cpu_in_mcpu):