Skip to content

Commit 124aa7e

Browse files
TaskVine Executor: make sure factory scratch dir exists (#3786)
# Fixes #3089 ## Type of change - Bug fix
1 parent d3c3f70 commit 124aa7e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

parsl/executors/taskvine/factory.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import logging
2+
import os
23

34
from parsl.executors.taskvine.errors import TaskVineFactoryFailure
45
from parsl.process_loggers import wrap_with_logs
@@ -43,6 +44,9 @@ def _taskvine_factory(should_stop, factory_config):
4344
factory.max_workers = factory_config.max_workers
4445
factory.workers_per_cycle = factory_config.workers_per_cycle
4546

47+
# create scratch dir if factory process gets ahead of the manager.
48+
os.makedirs(factory.scratch_dir, exist_ok=True)
49+
4650
if factory_config.worker_options:
4751
factory.extra_options = factory_config.worker_options
4852
factory.timeout = factory_config.worker_timeout

0 commit comments

Comments
 (0)