JobFilter
pyslurm.db.JobFilter
Query-Conditions for Jobs in the Slurm Database.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
**kwargs
|
Any
|
Any valid attribute of the object. |
required |
Attributes:
Name | Type | Description |
---|---|---|
ids |
list[int]
|
A list of Job ids to search for. |
start_time |
Union[str, int, datetime]
|
Search for Jobs which started after this time. |
end_time |
Union[str, int, datetime]
|
Search for Jobs which ended before this time. |
accounts |
list[str]
|
Search for Jobs with these account names. |
association_ids |
list[int]
|
Search for Jobs with these association ids. |
clusters |
list[str]
|
Search for Jobs running in these clusters. |
constraints |
list[str]
|
Search for Jobs with these constraints. |
cpus |
int
|
Search for Jobs with exactly this many CPUs.
Note: If you also specify |
max_cpus |
int
|
Search for Jobs with no more than this amount of CPUs.
Note: This value has no effect without also setting |
nodes |
int
|
Search for Jobs with exactly this many nodes.
Note: If you also specify |
max_nodes |
int
|
Search for Jobs with no more than this amount of nodes.
Note: This value has no effect without also setting |
qos |
list[str]
|
Search for Jobs with these Qualities of Service. |
names |
list[str]
|
Search for Jobs with these job names. |
partitions |
list[str]
|
Search for Jobs with these partition names. |
groups |
list[str]
|
Search for Jobs with these group names. Alternatively, you can also specify the GIDs directly. |
timelimit |
Union[str, int]
|
Search for Jobs with exactly this timelimit.
Note: If you also specify |
max_timelimit |
Union[str, int]
|
Search for Jobs which run no longer than this timelimit
Note: This value has no effect without also setting |
users |
list[str]
|
Search for Jobs with these user names. Alternatively, you can also specify the UIDs directly. |
wckeys |
list[str]
|
Search for Jobs with these WCKeys |
nodelist |
list[str]
|
Search for Jobs that ran on any of these Nodes |
with_script |
bool
|
Instruct the slurmdbd to also send the job script(s)
Note: This requires specifying explictiy job ids, and is mutually
exclusive with |
with_env |
bool
|
Instruct the slurmdbd to also send the job environment(s)
Note: This requires specifying explictiy job ids, and is mutually
exclusive with |
truncate_time |
bool
|
Truncate start and end time.
For example, when a Job has actually started before the requested
|