This commit is contained in:
Oliver Walters 2026-05-23 05:45:07 +00:00
parent 74afdb34e6
commit 4bb54ca914
1 changed files with 6 additions and 7 deletions

View File

@ -800,13 +800,12 @@ class Build(
# Offload background task to take care of the expensive operations
InvenTree.tasks.offload_task(
build.tasks.cancel_build(
self.pk,
user.pk if user else None,
remove_allocated_stock=remove_allocated_stock,
remove_incomplete_outputs=remove_incomplete_outputs,
group='build',
)
build.tasks.cancel_build,
self.pk,
user.pk if user else None,
remove_allocated_stock=remove_allocated_stock,
remove_incomplete_outputs=remove_incomplete_outputs,
group='build',
)
@transaction.atomic