Am I able to add an additional comment to my SLURM job?


Issue: Am I able to add an additional comment to my SLURM job?

Symptom: Moabs integration with SLURM relies on the SLURM Comment field to tarck Moab job IDs, dependencies, reservations and GRES. By "running scontrol show jobs" you can see an example of what Moab inserts into the job comment.

Example:

Note the comment below.

JobId=2236 JobName=moab.job.Ge9695
UserId=jbooth(500) GroupId=jbooth(500) MCS_label=N/A
Priority=0 Nice=0 Account=(null) QOS=(null)
JobState=PENDING Reason=JobHeldAdmin Dependency=(null)
Requeue=0 Restarts=0 BatchFlag=1 Reboot=0 ExitCode=0:0
RunTime=00:00:00 TimeLimit=00:01:00 TimeMin=N/A
SubmitTime=2016-04-29T11:56:20 EligibleTime=2016-04-29T11:56:20
StartTime=Unknown EndTime=Unknown Deadline=N/A
PreemptTime=None SuspendTime=None SecsPreSuspend=0
Partition=gpu AllocNode:Sid=support-slurm:10523
ReqNodeList=(null) ExcNodeList=(null)
NodeList=(null)
NumNodes=1 NumCPUs=2 NumTasks=2 CPUs/Task=1 ReqB:S:C:T=0:0:*:*
TRES=cpu=2,node=1
Socks/Node=* NtasksPerN:B:S:C=0:0:*:* CoreSpec=*
MinCPUsNode=2 MinMemoryNode=0 MinTmpDiskNode=0
Features=(null) Gres=(null) Reservation=(null)
Shared=OK Contiguous=0 Licenses=(null) Network=(null)
Command=/opt/moab/spool/moab.job.Ge9695
WorkDir=/home/jbooth
Comment='SJID:2236?SID:Moab'
StdErr=/home/jbooth/slurm-2236.out
StdIn=/dev/null
StdOut=/home/jbooth/slurm-2236.out
Power=

Solution:

So add your own comment you can append a "?SOME:INFORMATION". 

 

 

scontrol update JobID=2236 Comment="SJID:2236?SID:Moab?SOME:INFORMATION"

Moab will report the following but it will not have any negative affect on the job or Moabs integration with SLURM.

 

Message[1] cannot parse extension attribute 'SOME:INFORMATION' 

Tags: comment, slurm comment
Last update:
2016-04-29 19:49
Author:
Jason Booth
Revision:
1.0
Average rating:0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.

Records in this category

Tags