Skip to content

Commit

Permalink
At TGCC (i.e. in a container), use SLURM_JOBID as PID
Browse files Browse the repository at this point in the history
  • Loading branch information
senesis committed Jul 1, 2024
1 parent 96d26e1 commit 50e04c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions env/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,5 +250,5 @@ def my_which(soft):
if atTGCC:
# We are running there in a container, so concurrent instances
# of CliMAF may have the same process ID, while they have distinct
# values of environement variable SCRIPTID
robust_pid = os.getenv("SCRIPT_PID", robust_pid)
# values of environement variable SLURM_JOBID
robust_pid = os.getenv("SLURM_JOBID", robust_pid)

0 comments on commit 50e04c6

Please sign in to comment.