Update parameters of a pending (Idle) job. Note: this can not be used to modify an already running job.
Examples 1: changing the wallclock time limit
[213] bourbaki:/cluster-home/gregory/testing/list>diagnose -j Name State Par Proc QOS WCLimit R Min User Group Account QueuedTime Network Opsys Arch Mem Disk Procs Class Features testing.0 Idle ALL 1 med 00:05:00 1 1 gregory user - 00:01:22 ETHER Linux i386 >=0 >=0 NC0 [Batch:1] [NONE] testing.1 Idle ALL 1 med 00:05:00 1 1 gregory user - 00:01:22 ETHER Linux i386 >=0 >=0 NC0 [Batch:1] [NONE] testing.2 Idle ALL 1 med 00:05:00 1 1 gregory user - 00:01:22 ETHER Linux i386 >=0 >=0 NC0 [Batch:1] [NONE] testing.3 Idle ALL 1 med 00:05:00 1 1 gregory user - 00:01:21 ETHER Linux i386 >=0 >=0 NC0 [Batch:1] [NONE] Total Jobs: 4 Active Jobs: 0 [214] bourbaki:/cluster-home/gregory/testing/list>cmjobupdate -t 30 testing.3 [215] bourbaki:/cluster-home/gregory/testing/list>diagnose -j Name State Par Proc QOS WCLimit R Min User Group Account QueuedTime Network Opsys Arch Mem Disk Procs Class Features testing.0 Idle ALL 1 med 00:05:00 1 1 gregory user - 00:01:55 ETHER Linux i386 >=0 >=0 NC0 [Batch:1] [NONE] testing.1 Idle ALL 1 med 00:05:00 1 1 gregory user - 00:01:55 ETHER Linux i386 >=0 >=0 NC0 [Batch:1] [NONE] testing.2 Idle ALL 1 med 00:05:00 1 1 gregory user - 00:01:55 ETHER Linux i386 >=0 >=0 NC0 [Batch:1] [NONE] testing.3 Idle ALL 1 med 00:30:00 1 1 gregory user - 00:01:54 ETHER Linux i386 >=0 >=0 NC0 [Batch:1] [NONE] Total Jobs: 4 Active Jobs: 0
Example 2: changing the reservation name. Note that diagnose -j won't show the effect of the change here, since it does not display the advanced reservation associated with the job. One can use checkjob instead to see the reservation (look for ADVRES tag).
[219] bourbaki:/cluster-home/gregory/testing/list>cmjobupdate -r newres.5 testing.1 [220] bourbaki:/cluster-home/gregory/testing/list>checkjob testing.1 checking job testing.1 State: Idle Creds: user:gregory group:user class:Batch qos:med WallTime: 00:00:00 of 00:05:00 SubmitTime: Thu Apr 22 01:34:24 (Time Queued Total: 00:02:28 Eligible: 00:02:28) Total Tasks: 1 Req[0] TaskCount: 1 Partition: ALL Network: ETHER Memory >= 0 Disk >= 0 Swap >= 0 Opsys: Linux Arch: i386 Features: [NONE] IWD: /cluster-home/gregory/testing/list Executable: /var/spool/clubmask/testing.1 Bypass: 0 StartCount: 0 PartitionMask: [ALL] Flags: ADVRES:newres.5 BYNAME PREEMPTOR Reservation 'testing.1' (00:34:05 -> 00:39:05 Duration: 00:05:00) PE: 1.00 StartPriority: 52 job cannot run in partition DEFAULT (idle procs do not meet requirements : 0 of 1 procs found) idle procs: 64 feasible procs: 0 Rejection Reasons: [ReserveTime : 32]