Repository navigation
Call machine func - #9191
Merged
SchrodingersGat merged 13 commits intoFeb 28, 2025
Merged
Call machine func#9191
Conversation
- In line with plugin registry - More work can be done here (i.e. session caching)
✅ Deploy Preview for inventree-web-pui-preview canceled.
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #9191 +/- ##
==========================================
- Coverage 86.05% 86.05% -0.01%
==========================================
Files 1182 1182
Lines 52116 52175 +59
Branches 2185 2187 +2
==========================================
+ Hits 44850 44900 +50
- Misses 6706 6714 +8
- Partials 560 561 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
matmair
reviewed
Feb 26, 2025
matmair
left a comment
Member
There was a problem hiding this comment.
LGTM; plugin and machine registry seem to become more similar over time; this pattern might make sense to unify
matmair
approved these changes
Feb 26, 2025
2 of 6 tasks
Contributor
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation and see the Github Action logs for details |
SchrodingersGat
added a commit
to SchrodingersGat/InvenTree
that referenced
this pull request
Mar 14, 2025
* 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
SchrodingersGat
added a commit
that referenced
this pull request
Mar 14, 2025
* 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
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds framework for calling a specific machine / driver function by string lookup.
Avoids pickling and caching issues when offloading machine tasks to the background worker process.
Closes #9171