Skip to content

Commit 20b97d0

Browse files
authored
add simulation id to job name (#76)
1 parent d08e94b commit 20b97d0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

web-conexs-api/src/slurm_submission_service/fdmnes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def submit_fdmnes(session, sim: Simulation):
2222
user = sim.person.identifier
2323
uid = uuid.uuid4()
2424

25-
job_name = application_name + "-" + str(uid)
25+
job_name = sim.id + "-" + application_name + "-" + str(uid)
2626

2727
file_map = {}
2828
file_map["job.txt"] = job_string

web-conexs-api/src/slurm_submission_service/orca.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def submit_orca(session, sim: Simulation):
2323
user = sim.person.identifier
2424
uid = uuid.uuid4()
2525

26-
job_name = application_name + "-" + str(uid)
26+
job_name = sim.id + "-" + application_name + "-" + str(uid)
2727
working_dir = str(Path(ROOT_DIR) / Path(user) / Path(job_name))
2828

2929
file_map = {"job.inp": job_string}

web-conexs-api/src/slurm_submission_service/qe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def submit_qe(session, sim: Simulation):
2727
user = sim.person.identifier
2828
uid = uuid.uuid4()
2929

30-
job_name = application_name + "-" + str(uid)
30+
job_name = sim.id + "-" + application_name + "-" + str(uid)
3131
working_dir = str(Path(ROOT_DIR) / Path(user) / Path(job_name))
3232

3333
core_file = Path(pp_abs).with_suffix(".wfc")

0 commit comments

Comments
 (0)