fix(pyamber, v1.2): Invalidate cache while loading executor_def. - #7174
Open
github-actions[bot] wants to merge 1 commit into
Open
fix(pyamber, v1.2): Invalidate cache while loading executor_def.#7174github-actions[bot] wants to merge 1 commit into
github-actions[bot] wants to merge 1 commit into
Conversation
### What changes were proposed in this PR? This PR calls `importlib.invalidate_caches()` prior to importing newly written UDF modules in `ExecutorManager.load_executor_definition`. ### Any related issues, documentation, discussions? Fixes #7126 ### How was this PR tested? Tested with existing Python unit tests: * `amber/src/test/python/core/architecture/managers/test_executor_manager.py::TestUpdateExecutor::test_repeated_updates_keep_carrying_the_running_state` Verified that rapid sequential executor updates cleanly load without throwing `ModuleNotFoundError`. ### Was this PR authored or co-authored using generative AI tooling? No. (backported from commit 24a20c8)
Contributor
Author
|
The cherry-pick applied cleanly but the backported tree failed its pre-merge build. Fix the build on this branch, then mark this PR ready for review. |
xuang7
approved these changes
Jul 31, 2026
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.
What changes were proposed in this PR?
Automated backport of #7173 to
release/v1.2.Source: 24a20c8 · automation run
Any related issues, documentation, discussions?
Backport of #7173. Originally linked #7126.
How was this PR tested?
Release-branch CI runs on this branch once the build is fixed and this PR is marked ready for review.
Was this PR authored or co-authored using generative AI tooling?
No.