mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-29 11:04:35 +00:00
Ensure stock check task runs in the background worker (#10266)
This commit is contained in:
1 parent
c6f46c587d
commit
a3f4cc9b88
1 file changed
+3
-1
@@ -767,7 +767,9 @@ class Build(
|
|||||||
from build.tasks import check_build_stock
|
from build.tasks import check_build_stock
|
||||||
|
|
||||||
# Run checks on required parts
|
# Run checks on required parts
|
||||||
InvenTree.tasks.offload_task(check_build_stock, self, group='build')
|
InvenTree.tasks.offload_task(
|
||||||
|
check_build_stock, self, group='build', force_async=True
|
||||||
|
)
|
||||||
|
|
||||||
@transaction.atomic
|
@transaction.atomic
|
||||||
def hold_build(self):
|
def hold_build(self):
|
||||||
|
|||||||
Reference in new issue
Block a user