@@ -167,8 +167,9 @@ cdef class Jobs(dict):
167
167
This function fills in the "steps" attribute for all Jobs in the
168
168
collection.
169
169
170
- Note: Pending Jobs will be ignored, since they don't have any Steps
171
- yet.
170
+ !!! note
171
+
172
+ Pending Jobs will be ignored, since they don't have any Steps yet.
172
173
173
174
Raises:
174
175
RPCError: When retrieving the Job information for all the Steps
@@ -241,7 +242,8 @@ cdef class Job:
241
242
242
243
Implements the slurm_load_job RPC.
243
244
244
- Note:
245
+ !!! note
246
+
245
247
If the Job is not pending, the related Job steps will also be
246
248
loaded.
247
249
@@ -454,8 +456,6 @@ cdef class Job:
454
456
release the Job again. If you specify the mode as "user", the
455
457
User will also be able to release the job.
456
458
457
- Note: Uses the modify() function to set the Job's priority to 0.
458
-
459
459
Raises:
460
460
RPCError: When holding the Job was not successful.
461
461
@@ -478,9 +478,6 @@ cdef class Job:
478
478
def release (self ):
479
479
""" Release a currently held Job, allowing it to be scheduled again.
480
480
481
- Note: Uses the modify() function to reset the priority back to
482
- be controlled by the slurmctld's priority calculation routine.
483
-
484
481
Raises:
485
482
RPCError: When releasing a held Job was not successful.
486
483
@@ -1223,14 +1220,13 @@ cdef class Job:
1223
1220
def get_resource_layout_per_node (self ):
1224
1221
""" Retrieve the resource layout of this Job on each node.
1225
1222
1226
- The dict returned contains the following information for each node:
1227
- * cpu_ids (str)
1228
- * gres (dict)
1229
- * memory (int)
1223
+ !!! warning
1224
+
1225
+ Return type may still be subject to change in the future
1230
1226
1231
1227
Returns:
1232
1228
(dict): Resource layout, where the key is the name of the name and
1233
- its value another dict with the components described above .
1229
+ its value another dict with the CPU-ids, memory and gres .
1234
1230
"""
1235
1231
# The code for this function is a modified reimplementation from here:
1236
1232
# https://github.com/SchedMD/slurm/blob/d525b6872a106d32916b33a8738f12510ec7cf04/src/api/job_info.c#L739
0 commit comments