Skip to content

Commit adb0e9f

Browse files
committed
fix
1 parent 114d280 commit adb0e9f

File tree

1 file changed

+2
-2
lines changed
  • executorlib/task_scheduler/interactive

1 file changed

+2
-2
lines changed

executorlib/task_scheduler/interactive/shared.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ def _execute_task_with_cache(
161161
cache_key=cache_key,
162162
)
163163
os.makedirs(cache_directory, exist_ok=True)
164-
file_name = os.path.join(cache_directory, task_key + "_o.h5")
165-
if task_key + "_o.h5" not in get_cache_files(cache_directory=cache_directory):
164+
file_name = os.path.abspath(os.path.join(cache_directory, task_key + "_o.h5"))
165+
if file_name not in get_cache_files(cache_directory=cache_directory):
166166
f = task_dict.pop("future")
167167
if f.set_running_or_notify_cancel():
168168
try:

0 commit comments

Comments
 (0)