Skip to content

Commit

Permalink
Fix batch distribution for other worker types (#82)
Browse files Browse the repository at this point in the history
* fix batch distribution for other worker types

* update changelog
  • Loading branch information
lilyminium authored Feb 9, 2024
1 parent 869993d commit e1e96bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ The rules for this file:

### Fixed
<!-- Bug fixes -->
- Fixed batch distribution hardcoding (Issue #80, PR #82)
- Fixed node and edge typing, adding DGL 2.0 compatibility (Issue #78, PR #79)

### Changed
Expand Down
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(f"jobqueue.{worker_type}.job-script-prologue", default=[])
)
env_extra.append(f"{package_manager} activate {conda_environment}")


Expand Down

0 comments on commit e1e96bf

Please sign in to comment.