Skip to content

Commit

Permalink
Better job names
Browse files Browse the repository at this point in the history
  • Loading branch information
asl committed Sep 21, 2024
1 parent fcaca11 commit fcf0c5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ def to_dict(self):
"del_after": self.del_after}

def generate_job_uuid(self):
return self.STAGE.replace(' ', '_') + "_" + \
return ('hpcSPAdes_' if self.mpi_support else 'SPAdes_') + \
self.STAGE.replace(' ', '_') + "_" + \
''.join([random.choice(string.ascii_uppercase + string.digits) for k in range(32)])


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def get_MPI_sh_preambula(self):
return preambula

def get_sh_command(self, command, prev_id, mpi):
cmd_str = "#=== STAGE " + command.STAGE + ("(MPI) ===\n" if mpi else "(not MPI) ===\n")
cmd_str = "#=== STAGE " + command.STAGE + (" (MPI) ===\n" if mpi else " (not MPI) ===\n")
cmd_str += "CMD=\"" + command.mpi_sh_str() + "\"\n"
cmd_str += "SID1=$(" + self.grid_engine_submit_command + " $SLURM_ARGS " + \
self.grid_engine_job_name.format(JOB_NAME=command.job_uuid) + " $LOG_OUT $ERR_OUT "
Expand Down

0 comments on commit fcf0c5c

Please sign in to comment.