Skip to content

Commit 30b120f

Browse files
committed
Updated PARSL translater to use a ThreadPool executor when
generating the code, as, somehow, it sometimes hangs
1 parent f20871a commit 30b120f

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

wfcommons/wfbench/translator/templates/parsl_template.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,20 @@
1616
from parsl.app.app import bash_app
1717
from parsl.config import Config
1818
from parsl.executors import HighThroughputExecutor
19+
from parsl.executors.threads import ThreadPoolExecutor
1920
from parsl.providers import LocalProvider
2021
from parsl.data_provider.files import File
22+
2123
# NOTE: Uncomment the following lines to enable Parsl workflow monitoring
2224
# from parsl.monitoring.monitoring import MonitoringHub
2325
# from parsl.addresses import address_by_hostname
2426

2527
# NOTE: update the configuration below for your desired system (https://parsl.readthedocs.io/en/stable/userguide/configuring.html)
2628
config = Config(
2729
executors=[
28-
HighThroughputExecutor(
29-
label="local_htex",
30-
worker_debug=True,
31-
cores_per_worker=1,
32-
max_workers_per_node=1,
33-
provider=LocalProvider(
34-
init_blocks=1,
35-
max_blocks=1,
36-
),
37-
)
30+
ThreadPoolExecutor(
31+
max_threads=1,
32+
label='local_threads'),
3833
],
3934
strategy=None,
4035

0 commit comments

Comments
 (0)