Skip to content

Commit 856b01f

Browse files
committed
updated cache_dir to cache_root
1 parent cfead27 commit 856b01f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pydra/workers/psij_local/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ async def run(
8080
"""
8181
jex = psij.JobExecutor.get_instance(self.subtype)
8282

83-
cache_dir = job.cache_dir
84-
file_path = cache_dir / "runnable_function.pkl"
83+
cache_root = job.cache_root
84+
file_path = cache_root / "runnable_function.pkl"
8585
with open(file_path, "wb") as file:
8686
cp.dump(job.run, file)
8787
func_path = SCRIPTS_DIR / "run_pickled.py"
@@ -90,8 +90,8 @@ async def run(
9090
if rerun:
9191
spec.arguments.append("--rerun")
9292

93-
spec.stdout_path = cache_dir / "demo.stdout"
94-
spec.stderr_path = cache_dir / "demo.stderr"
93+
spec.stdout_path = cache_root / "demo.stdout"
94+
spec.stderr_path = cache_root / "demo.stderr"
9595

9696
psij_job = self.make_job(spec, None)
9797
jex.submit(psij_job)

0 commit comments

Comments
 (0)