Skip to content

Commit

Permalink
use WQ coprocess feature by default
Browse files Browse the repository at this point in the history
  • Loading branch information
svandenhaute committed Dec 9, 2023
1 parent 8b8b2c4 commit 278b366
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions psiflow/execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,8 @@ def parse_config(yaml_dict: dict):
"max_idletime": 20,
"default_threads": 1,
"htex_address": None,
# "use_workqueue": False,
"mode": "taskvine",
"mode": "workqueue",
"workqueue_use_coprocess": True,
}
forced = {
"initialize_logging": False, # manual; to move parsl.log one level up
Expand Down Expand Up @@ -330,6 +330,7 @@ def load(
# create main parsl executors
executors = []
mode = psiflow_config.pop("mode")
use_coprocess = psiflow_config.pop("workqueue_use_coprocess")
for definition in definitions:
if definition.use_threadpool:
executor = ThreadPoolExecutor(
Expand Down Expand Up @@ -404,7 +405,7 @@ def load(
autocategory=False,
port=0,
max_retries=0,
coprocess=False,
coprocess=use_coprocess,
worker_options=" ".join(worker_options),
)
else:
Expand Down

0 comments on commit 278b366

Please sign in to comment.