Job
Warning
This is superseded by pyslurm.db.Job class and will be removed in a future release
pyslurm.deprecated.slurmdb_jobs
Access Slurmdbd Jobs information.
get(jobids=[], userids=[], starttime=0, endtime=0, flags=None, db_flags=None, clusters=[])
method descriptor
Get Slurmdb information about some jobs.
Input formats for start and end times
- today or tomorrow
- midnight, noon, teatime (4PM)
- HH:MM [AM|PM]
- MMDDYY or MM/DD/YY or MM.DD.YY
- YYYY-MM-DD[THH[:MM[:SS]]]
- now + count [minutes | hours | days | weeks] *
Invalid time input results in message to stderr and return value of zero.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
jobids
|
list
|
Ids of the jobs to search. Defaults to all jobs. |
[]
|
starttime
|
int
|
Select jobs eligible after this timestamp |
0
|
endtime
|
int
|
Select jobs eligible before this timestamp |
0
|
userids
|
list
|
List of userids |
[]
|
flags
|
int
|
Flags |
None
|
db_flags
|
int
|
DB Flags |
None
|
clusters
|
list
|
List of clusters |
[]
|
Returns:
Type | Description |
---|---|
dict
|
Dictionary whose key is the JOBS ID |