2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-16 12:05:53 +00:00

Call machine func (#9191)

* 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-02-28 21:07:56 +11:00
committed by GitHub
parent 157cbbead5
commit 6c52f00c16
7 changed files with 118 additions and 16 deletions

View File

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