Skip to content

Commit 6d8e451

Browse files
committed
Create directory later
1 parent f75a2f4 commit 6d8e451

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

executorlib/task_scheduler/file/task_scheduler.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ def __init__(
6262
if execute_function == execute_in_subprocess and terminate_function is None:
6363
terminate_function = terminate_subprocess
6464
cache_directory_path = os.path.abspath(cache_directory)
65-
os.makedirs(cache_directory_path, exist_ok=True)
6665
self._process_kwargs = {
6766
"future_queue": self._future_queue,
6867
"execute_function": execute_function,

executorlib/task_scheduler/interactive/shared.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ def _execute_task_with_cache(
160160
resource_dict=task_dict.get("resource_dict", {}),
161161
cache_key=cache_key,
162162
)
163-
os.makedirs(cache_directory, exist_ok=True)
164163
file_name = os.path.abspath(os.path.join(cache_directory, task_key + "_o.h5"))
165164
if file_name not in get_cache_files(cache_directory=cache_directory):
166165
f = task_dict.pop("future")

0 commit comments

Comments
 (0)