This is an automated email from the ASF dual-hosted git repository.
github-merge-queue[bot] pushed a commit to branch release/v1.2
in repository https://gitbox.apache.org/repos/asf/texera.git
The following commit(s) were added to refs/heads/release/v1.2 by this push:
new a9f39e2c66 fix(pyamber, v1.2): Invalidate cache while loading
executor_def. (#7174)
a9f39e2c66 is described below
commit a9f39e2c6616669d470e1f4996d5e54a75b30c2c
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Aug 3 03:51:12 2026 +0000
fix(pyamber, v1.2): Invalidate cache while loading executor_def. (#7174)
### What changes were proposed in this PR?
Automated backport of #7173 to `release/v1.2`.
Source: 24a20c8e4b6f876082be35f6f5fba4833a122de8 · [automation
run](https://github.com/apache/texera/actions/runs/30656915232)
### 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.
Co-authored-by: Neil Ketteringham
<[email protected]>
Co-authored-by: Xinyuan Lin <[email protected]>
---
amber/src/main/python/core/architecture/managers/executor_manager.py | 3 +++
1 file changed, 3 insertions(+)
diff --git
a/amber/src/main/python/core/architecture/managers/executor_manager.py
b/amber/src/main/python/core/architecture/managers/executor_manager.py
index 7f2249476a..375033ad60 100644
--- a/amber/src/main/python/core/architecture/managers/executor_manager.py
+++ b/amber/src/main/python/core/architecture/managers/executor_manager.py
@@ -99,6 +99,9 @@ class ExecutorManager:
f"{Path(self.fs.getsyspath('/')).joinpath(file_name)}."
)
+ # Clear importlib's directory listing cache so freshly written
+ # temporary modules are discoverable on systems with coarse mtime.
+ importlib.invalidate_caches()
# gen_module_file_name guarantees module_name is unique across
# the process, so import_module will always cleanly load source
# from the tmp fs we just wrote — no re-import / reload dance.