Open mp-strachan opened 3 months ago
quick fix, and dirty:
I locally modified
/opt/inventree/src/backend/InvenTree/plugin/base/locate/api.py
in lines 63 and 81 to include
force_sync=True
Surely not the perfect solution (even if done centrally by InvenTree) as locating should be done asynchronously, but it works for now
This issue seems stale. Please react to show this is still important.
Still not fixed
Please verify that this bug has NOT been raised before.
Describe the bug*
I have made a custom build of matmair's WLED Locator (as the one from the git repo no longer functions).
If I load my version of the plugin (from local file using INVENTREE_PLUGIN_DIR) without running a worker (docker), then the plug-in works perfectly fine. As soon as I run it on a stack with a worker container, I get the error:
Can't pickle <class 'plugins.wled.WledPlugin.WledPlugin'>: it's not the same object as plugins.wled.WledPlugin.WledPlugin
when trying to execute an action.INVENTREE_PLUGIN_DIR is a mapped volume in my docker-composer, and is configured for both the server and worker container.
Once this (loading with a worker enabled) has occurred once, I must completely remove the plugin config from django admin, remove the pycache directory from plug-in directory and restart the server (without a worker), else the issue persists.
Steps to Reproduce
Docker-compose.yml excerpt (excluding cache, proxy & DB)
.env excerpt:
Expected behaviour
Plugin should work with both standalone server and with server + worker.
Deployment Method
Version Information
Using latest tag for both worker & server
Please verify if you can reproduce this bug on the demo site.
Relevant log output