Skip to content

Commit

Permalink
add sbatch command path
Browse files Browse the repository at this point in the history
  • Loading branch information
MehmedGIT committed Mar 6, 2024
1 parent a96016b commit 875ba95
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/utils/operandi_utils/hpc/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@
"HPC_EXECUTOR_HOSTS",
"HPC_EXECUTOR_PROXY_HOSTS",
"HPC_TRANSFER_HOSTS",
"HPC_TRANSFER_PROXY_HOSTS"
"HPC_TRANSFER_PROXY_HOSTS",
"SBATCH_EXE_PATH"
]

# "gwdu103.hpc.gwdg.de" - bad host entry, has no access to /scratch1, but to /scratch2
HPC_EXECUTOR_HOSTS = ["gwdu102.hpc.gwdg.de", "gwdu101.hpc.gwdg.de", "login-mdc.hpc.gwdg.de"]
HPC_EXECUTOR_PROXY_HOSTS = ["login.gwdg.de"]
HPC_TRANSFER_HOSTS = ["transfer-scc.gwdg.de", "transfer-mdc.hpc.gwdg.de"]
HPC_TRANSFER_PROXY_HOSTS = ["transfer.gwdg.de", "login.gwdg.de"]

SBATCH_EXE_PATH: str = "/usr/local/slurm/slurm/current/install/bin/sbatch"
4 changes: 2 additions & 2 deletions src/utils/operandi_utils/hpc/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from time import sleep
from typing import List
from .connector import HPCConnector
from .constants import HPC_EXECUTOR_HOSTS, HPC_EXECUTOR_PROXY_HOSTS
from .constants import HPC_EXECUTOR_HOSTS, HPC_EXECUTOR_PROXY_HOSTS, SBATCH_EXE_PATH


class HPCExecutor(HPCConnector):
Expand Down Expand Up @@ -71,7 +71,7 @@ def trigger_slurm_job(

nextflow_script_id = nextflow_script_path.split('/')[-1]
command = "bash -lc"
command += " 'sbatch"
command += f" '{SBATCH_EXE_PATH}"

if ws_pages_amount < nf_process_forks:
self.log.warning(
Expand Down

0 comments on commit 875ba95

Please sign in to comment.