Skip to content

Commit

Permalink
change slurm log file path to jobid_arrayid
Browse files Browse the repository at this point in the history
  • Loading branch information
guipenedo committed Dec 21, 2023
1 parent e43175a commit 4e29133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datatrove/executor/slurm.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def launch_job(self):

def get_sbatch_args(self, max_array: int = 1) -> dict:
os.makedirs(self.slurm_logs_folder, exist_ok=True)
slurm_logfile = os.path.join(self.slurm_logs_folder, "%j.out")
slurm_logfile = os.path.join(self.slurm_logs_folder, "%A_%a.out")
return {
"cpus-per-task": self.cpus_per_task,
"mem-per-cpu": f"{self.mem_per_cpu_gb}G",
Expand Down

0 comments on commit 4e29133

Please sign in to comment.