Skip to content

Commit

Permalink
move client to path
Browse files Browse the repository at this point in the history
  • Loading branch information
TorecLuik committed Jun 20, 2024
1 parent 9aea148 commit 3e5d5b7
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions biomero/slurm_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,14 +535,15 @@ def setup_converters(self):
full_path = self.slurm_converters_path+"/"+script_name
_ = self.put(local=io.StringIO(job_script), remote=full_path)
cmd = f"time sh {script_name}"
r = self.run_commands([cmd])
if not r.ok:
raise SSHException(r)
logger.info(r.stdout)
logger.info("Initiated downloading and building" +
" container images on Slurm." +
" This will probably take a while in the background." +
" Check 'sing.log' on Slurm for progress.")
with self.cd(self.slurm_converters_path):
r = self.run_commands([cmd])
if not r.ok:
raise SSHException(r)
logger.info(r.stdout)
logger.info("Initiated downloading and building" +
" container images on Slurm." +
" This will probably take a while in the background." +
" Check 'sing.log' on Slurm for progress.")
else:
## BUILD converter from singularity def file
# copy generic job array script over to slurm
Expand Down

0 comments on commit 3e5d5b7

Please sign in to comment.