Skip to content

Commit

Permalink
fix batch distribution for other worker types
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyminium committed Feb 9, 2024
1 parent fd2d78f commit 6bd3c95
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions openff/nagl/utils/_parallelization.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@ def batch_distributed(
f"Setting n_workers={n_workers} for {n_batches} batches"
)

env_extra = dask.config.get("jobqueue.lsf.job-script-prologue", default=[])
if not env_extra:
env_extra = []
env_extra = []
if worker_type != "local":
env_extra.extend(
dask.config.get("jobqueue.job-script-prologue", default=[])
)
env_extra.append(f"{package_manager} activate {conda_environment}")


Expand Down

0 comments on commit 6bd3c95

Please sign in to comment.