mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-30 20:55:42 +00:00 
			
		
		
		
	Ensure stock check task runs in the background worker (#10266)
This commit is contained in:
		| @@ -767,7 +767,9 @@ class Build( | ||||
|             from build.tasks import check_build_stock | ||||
|  | ||||
|             # 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 | ||||
|     def hold_build(self): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user