Skip to content

Commit

Permalink
Fix: Invalidate importlib cache for decorator job (#783)
Browse files Browse the repository at this point in the history
  • Loading branch information
shpface authored Nov 3, 2023
1 parent dc2ac56 commit 4446f4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/braket/jobs/quantum_job_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ def _validate_entry_point(source_module_path: Path, entry_point: str) -> None:
sys.path.append(str(source_module_path.parent))
try:
# second argument allows relative imports
importlib.invalidate_caches()
module = importlib.util.find_spec(importable, source_module_path.stem)
assert module is not None
# if entry point is nested (ie contains '.'), parent modules are imported
Expand Down

0 comments on commit 4446f4b

Please sign in to comment.