mirror of
https://github.com/inventree/InvenTree.git
synced 2026-05-30 21:25:36 +00:00
Do not raise exception in offload_task
This commit is contained in:
@@ -326,7 +326,7 @@ def offload_task(
|
||||
except Exception as exc:
|
||||
log_error('offload_task', scope='worker')
|
||||
raise_warning(f"WARNING: '{taskname}' failed due to {exc!s}")
|
||||
raise exc
|
||||
return False
|
||||
|
||||
# Finally, task either completed successfully or was offloaded
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user