2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-13 08:21:26 +00:00

Call machine func (#9191) (#9298)

* Force label printing to background worker

* Refactor "check_reload" state of machine registry

- In line with plugin registry
- More work can be done here (i.e. session caching)

* Better handling of call_plugin_function

* Wrapper for calling machine function

* Use AttributeError instead

* Simplify function offloading

* Check plugin registry hash when reloading machine registry

* Cleanup

* Fixes

* Adjust unit test

* Cleanup

* Allow running in foreground if background worker not running

* Simplify call structure
This commit is contained in:
Oliver
2025-03-14 13:40:37 +11:00
committed by GitHub
parent 75420fc97e
commit af0a2822d1
7 changed files with 118 additions and 16 deletions

View File

@ -511,7 +511,7 @@ export function MachineListTable({
}, [machineDrivers, createFormMachineType]);
const createMachineForm = useCreateApiFormModal({
title: t`Add machine`,
title: t`Add Machine`,
url: ApiEndpoints.machine_list,
fields: {
name: {},