(Click to open topic with navigation)
See the associated Jobs resource section for more information on how to use this resource and supported operations.
Additional references
Type | Value | Additional information |
---|---|---|
Permissions resource | jobs | Permissions |
Hooks filename | jobs.groovy | Pre- and Post-Processing Hooks |
Tenant-supported | Yes | Tenants |
Distinct query-supported | Yes | Distinct |
This class represents a job in the Moab Workload Manager. A job is a request for compute resources (CPUs, memory, storage) with which the requester can do work for a given amount of time. In an HPC environment, this might be a batch script to perform a Monte Carlo simulation. In a cloud environment, this would be a virtual machine and its associated storage. Moab will evaluate the request and assign the requested resources to the requester based on policies, current demand, and other factors in the data center. A job will also usually have some process that Moab starts automatically at the assigned start time. In an HPC environment, this can be starting a batch script on the assigned nodes. In a cloud environment, this can be starting provisioning processes to create the virtual machine and storage and install software on it.
Field Name | Type | POST | PUT | Description |
---|---|---|---|---|
id | String | No | No |
The unique identifier of this job. Note: this field is not user-assigned and is generated by the database. |
arrayIndex | Long | No | No |
If this job is a sub-job of a JobArray, this field contains the index of this job in the array. For example, if this job is |
arrayMasterName | String | No | No |
If this job is a sub-job of a JobArray, this field contains the name of the job array master. For example, if this job is |
attributes | Set<String> | Yes | No |
The list of generic attributes associated with this job. |
blocks | Set<JobBlock> | No | No |
Reasons the job is blocked from running. |
bypassCount | Integer | No | No |
The number of times the job has been backfilled. |
cancelCount | Integer | No | No |
The number of times a job has received a cancel request. |
commandFile | String | Yes | No |
The name of the job script file (absolute path). If commandFile is set and commandScript is not set, then MWS must have read access to the file. If commandFile and commandScript are both set, then MWS does not read the contents of the file, but it does provide the name of the file to Moab. |
commandLineArguments | String | Yes | No |
The command line arguments passed to the job script specified by commandFile or commandScript. |
commandScript | String | Yes | No |
The contents of the job script. This field must be Base64-encoded. |
completionCode | Integer | No | No |
The exit code from this job. |
cpuTime | Long | No | No |
CPU usage time in seconds as reported by the resource manager. |
credentials | JobCredentials | Yes | Yes |
The credentials (user and group, for example) associated with this job. |
customName | String | Yes | Yes |
The user-specified name of this job. |
dates | JobDates | Yes | Yes |
Various dates associated with this job. |
deferCount | Integer | No | No |
The number of times a job has been deferred. |
dependencies | Set<JobDependency> | Yes | No |
Dependencies that must be fulfilled before the job can start. |
description | String | No | No |
The description of the job. Can be set only in a job template. |
duration | Long | Yes | Yes |
The length of time in seconds requested for the job. Note that it is possible to set duration to "INFINITY" if the AllowInfiniteJobs flag is set on the scheduler in the moab.cfg. |
durationActive | Long | No | No |
The length of time in seconds the job has been active or running. |
durationQueued | Long | No | No |
The length of time in seconds the job has been eligible to run in the queue. |
durationRemaining | Long | No | No |
An estimate of the time remaining, in seconds, before the job will complete. |
durationSuspended | Long | No | No |
The length of time in seconds the job has been suspended. |
emailNotifyAddresses | Set<String> | Yes | No |
The list of addresses to whom email is sent by the execution server. |
emailNotifyTypes | Set<JobEmailNotifyType> | Yes | No |
The list of email notify types attached to the job. |
environmentRequested | Boolean | Yes | No |
Setting this field to true tells the Moab Workload Manager to set various variables, if populated, in the job's environment. |
environmentVariables | Map<String, Map> | Yes | No |
The list of environment variables for this job. |
epilogScript | String | Yes | No |
The path to the TORQUE epilog script. |
flags | Set<JobFlag> | Yes | Yes |
The flags that are set on this job. |
holdDate | Date | No | No |
The date the most recent hold was placed on the job. |
holdReason | JobHoldReason | No | No |
The reason the job is on hold. |
holds | Set<JobHoldType> | Yes | Yes |
The holds that are set on the job. The "User" hold type is valid during POST. |
initialWorkingDirectory | String | Yes | No |
The path to the directory in which the job will be started. |
isActive | Boolean | No | No |
True if the job is active, false if the job is complete. |
jobGroup | String | Yes | No |
The job group to which this job belongs (different from credentials.group). |
masterNode | DomainProxy | No | No |
The first node in the list of allocated nodes for this job. For TORQUE jobs, this represents the "mother superior." |
memorySecondsDedicated | Double | No | No |
The memory seconds dedicated to the job as reported by its resource manager. Not all resource managers provide this information. |
memorySecondsUtilized | Double | No | No |
The memory seconds utilized by the job as reported by its resource manager. Not all resource managers provide this information. |
messages | Set<Message> | No | Yes |
The list of messages associated with the job. The "message" field is valid during PUT. |
migrateCount | Integer | No | No |
The number of times the job has been migrated. |
minimumPreemptTime | Long | No | No |
The minimum length of time, in seconds, an active job must be running before it is eligible for preemption. |
mwmName | String | No | No |
The name of the Moab Workload Manager instance that owns this job. |
name | String | No | No |
The name of this job. This name is unique per instance of Moab Workload Manager (i.e. not globally). |
nodesExcluded | Set<DomainProxy> | Yes | No |
The list of nodes that should not be considered for this job. |
nodesRequested | Set<DomainProxy> | Yes | No |
The exact set, superset, or subset of nodes on which this job must run. (See also: nodesRequestedPolicy.) |
nodesRequestedPolicy | JobHostListMode | Yes | No |
Indicates an exact set, superset, or subset of nodes on which the job must run. Only relevant if nodesRequested is provided. (See also: nodesRequested.) |
partitionAccessList | Set<String> | No | No |
The list of partitions that this job can access. |
partitionAccessListRequested | Set<String> | Yes | Yes |
The list of partitions that this job has requested. |
preemptCount | Integer | No | No |
The number of times the job has been preempted. |
priorities | JobPriority | Yes | Yes |
The list of priorities for the job. |
processorSecondsDedicated | Double | No | No |
The processor seconds dedicated to the job as reported by its resource manager. Not all resource managers provide this information. |
processorSecondsLimit | Double | No | No |
The limit for processorSecondsUtilized. |
processorSecondsUtilized | Double | No | No |
The processor seconds utilized by the job as reported by its resource manager. Not all resource managers provide this information. |
prologScript | String | Yes | No |
The path to the TORQUE prolog script. |
queueStatus | JobQueueStatus | No | No |
The status of the job in its queue. |
rejectPolicies | Set<JobRejectPolicy> | No | No |
The list of policies enabled when a job is rejected. |
requirements | Set<JobRequirement> | Yes | Yes |
The list of items required for this job to run. Only JobRequirement.features is valid during PUT. |
reservationRequested | DomainProxy | Yes | Yes |
The reservation that the job requested. |
resourceFailPolicy | JobResourceFailPolicyType | Yes | No |
The policy that dictates what should happen to the job if it is running and at least one of the resources it is using fails. |
resourceManagerExtension | String | Yes | No |
If provided during POST, this string will be added to the resource manager extension section of the job submission. Example: "bandwidth=120;queuejob=false" |
resourceManagers | Set<ResourceManager> | No | No |
The list of resource managers associated with this job. |
rmStandardErrorFilePath | String | No | No |
The path to the remote file containing the standard error of the job. |
rmStandardOutputFilePath | String | No | No |
The path to the remote file containing the standard output of the job. |
standardErrorFilePath | String | Yes | No |
The path to the file containing the standard error of the job. |
standardOutputFilePath | String | Yes | No |
The path to the file containing the standard output of the job. |
startCount | Integer | No | No |
The number of times the job has been started. |
states | JobStateInformation | No | No |
Information about the state of the job. |
submitHost | String | Yes | No |
The host from which the job was submitted. |
systemJobAction | String | No | No |
The action the system job will take. |
systemJobType | JobSystemJobType | No | No |
The type of system job. In the Moab Cloud Suite, this will usually be "vmtracking" or "generic." |
targetedJobAction | JobActionType | No | No |
The action that this job is performing on another job. |
targetedJobName | String | No | No |
The name of the job on which this job is performing the targetedJobAction. |
templates | Set<DomainProxy> | Yes | No |
The list of all job templates to be set on this job. |
triggers | Set<String> | No | No |
The list of triggers associated with this job. |
variables | Map<String, Map> | Yes | Yes |
The list of variables that this job owns or sets on completion. |
virtualContainers | Set<DomainProxy> | Yes | No |
When submitting this job, add it to the specified existing virtual container. Valid during POST, but only one virtual container can be specified. |
virtualMachines | Set<DomainProxy> | No | No |
The list of virtual machines that are allocated to this job. |
vmUsagePolicy | VMUsagePolicy | Yes | No |
The requested Virtual Machine Usage Policy for this job. |
Field Name | Type | POST | PUT | Description |
---|---|---|---|---|
category | JobBlockCategory | No | No | |
message | String | No | No | |
type | JobBlockType | No | No |
Value | Description |
---|---|
depend | |
jobBlock | |
migrate |
Value | Description |
---|---|
ActivePolicy | |
BadUser | |
Dependency | |
EState | |
FairShare | |
Hold | |
IdlePolicy | |
LocalPolicy | |
NoClass | |
NoData | |
NoResource | |
NoTime | |
PartitionAccess | |
Priority | |
RMSubmissionFailure | |
StartDate | |
State | |
SysLimits |
Moab Workload Manager supports the concept of credentials, which provide a means of attributing policy and resource access to entities such as users and groups. These credentials allow specification of job ownership, tracking of resource usage, enforcement of policies, and many other features.
Field Name | Type | POST | PUT | Description |
---|---|---|---|---|
name | String | Yes | No |
The name of the object on on which the job is dependent. |
type | JobDependencyType | Yes | No |
The type of job dependency. Only set is valid for POST. |
value | String | No | No |
Represents the type of a job dependency. For now, only the "set" type is supported.
Value | Description |
---|---|
set |
Value | Description |
---|---|
JobStart | |
JobEnd | |
JobFail | |
All |
This enumeration specifies the flag types of a job.
Value | Description |
---|---|
NONE | |
BACKFILL | The job is using backfill to run. |
COALLOC | The job can use resources from multiple resource managers and partitions. |
ADVRES | The job requires the use of a reservation. |
NOQUEUE | The job will attempt to execute immediately or fail. |
ARRAYJOB | The job is part of a job array. |
ARRAYJOBPARLOCK | This array job will only run in one partition. |
ARRAYJOBPARSPAN | This array job will span partitions (default). |
ARRAYMASTER | This job is the master of a job array. |
BESTEFFORT | The job will succeed if even partial resources are available. |
RESTARTABLE | The job is restartable. |
SUSPENDABLE | The job is suspendable. |
HASPREEMPTED | This job preempted other jobs to start. |
PREEMPTEE | The job is a preemptee and therefore can be preempted by other jobs. |
PREEMPTOR | The job is a preemptor and therefore can preempt other jobs. |
RSVMAP | The job is based on a reservation. |
SPVIOLATION | The job was started with a soft policy violation. |
IGNNODEPOLICIES | The job will ignore node policies. |
IGNPOLICIES | The job will ignore idle, active, class, partition, and system policies. |
IGNNODESTATE | The job will ignore node state in order to run. |
IGNIDLEJOBRSV | The job can ignore idle job reservations. The job granted access to all idle job reservations. |
INTERACTIVE | The job needs to interactive input from the user to run. |
FSVIOLATION | The job was started with a fairshare violation. |
GLOBALQUEUE | The job is directly submitted without doing any authentication. |
NORESOURCES | The job is a system job that does not need any resources. |
NORMSTART | The job will not query a resource manager to run. |
CLUSTERLOCKED | The job is locked into the current cluster and cannot be migrated elsewhere. This is for grid mode. |
FRAGMENT | The job can be run across multiple nodes in individual chunks. |
SYSTEMJOB | The job is a system job which simply runs on the same node that Moab is running on. This is usually used for running scripts and other executables in workflows. |
ADMINSETIGNPOLICIES | The IGNPOLICIES flag was set by an administrator. |
EXTENDSTARTWALLTIME | The job duration (walltime) was extended at job start. |
SHAREDMEM | The job will share its memory across nodes. |
BLOCKEDBYGRES | The job's generic resource requirement caused the job to start later. |
GRESONLY | The job is requesting only generic resources, no compute resources. |
TEMPLATESAPPLIED | The job has had all applicable templates applied to it. |
META | META job, just a container around resources. |
WIDERSVSEARCHALGO | This job prefers the wide search algorithm. |
VMTRACKING | The job is a VMTracking job for an externally-created VM (via job template). |
DESTROYTEMPLATESUBMITTED | A destroy job has already been created from the template for this job. |
PROCSPECIFIED | The job requested processors on the command line. |
CANCELONFIRSTFAILURE | Cancel job array on first array job failure. |
CANCELONFIRSTSUCCESS | Cancel job array on first array job success. |
CANCELONANYFAILURE | Cancel job array on any array job failure. |
CANCELONANYSUCCESS | Cancel job array on any array job success. |
CANCELONEXITCODE | Cancel job array on a specific exit code. |
NOVMMIGRATE | Do not migrate the virtual machine that this job sets up. |
PURGEONSUCCESSONLY | Only purge the job if it completed successfully |
ALLPROCS | Each job compute task requests all the procs on its node |
Value | Description |
---|---|
Admin | |
NoResources | |
SystemLimitsExceeded | |
BankFailure | |
CannotDebitAccount | |
InvalidAccount | |
RMFailure | |
RMReject | |
PolicyViolation | |
CredAccess | |
CredHold | |
PreReq | |
Data | |
Security | |
MissingDependency |
Value | Description |
---|---|
User | |
System | |
Batch | |
Defer | |
All |
A reference to an object contained within an object. For example, a Virtual Machine object contains a reference to the Node on which it is running. That reference is represented by this class.
Field Name | Type | POST | PUT | Description |
---|---|---|---|---|
name | String | Yes | No |
The name of the object. |
Value | Description |
---|---|
superset | |
subset | |
exactset |
Value | Description |
---|---|
active | |
blocked | |
completed | |
eligible |
Value | Description |
---|---|
CANCEL | |
HOLD | |
IGNORE | |
RETRY |
Field Name | Type | POST | PUT | Description |
---|---|---|---|---|
architecture | String | Yes | No |
The architecture required by the job. |
attributes | Map<String, JobRequirementAttribute> | Yes | No |
Required node attributes with version number support. |
features | Set<String> | No | Yes |
The list of node features the job is scheduled against. |
featuresExcluded | Set<String> | Yes | No |
Excluded node features. That is, do not select nodes with these features. (See also: featuresExcludedMode.) |
featuresExcludedMode | JobRequirementFeaturesMode | Yes | No |
Indicates whether excluded features should be AND'ed or OR'd. The default is AND. Only relevant if featuresExcluded is provided. (See also: featuresExcluded.) |
featuresRequested | Set<String> | Yes | No |
Requested node features. (See also: featuresRequestedMode.) |
featuresRequestedMode | JobRequirementFeaturesMode | Yes | No |
Indicates whether requested features should be AND'ed or OR'd. The default is AND. Only relevant if featuresRequested is provided. (See also: featuresRequested.) |
image | String | Yes | No |
The image required by the job. |
index | Integer | No | No |
The index of the requirement, starting with 0. |
metrics | Map<String, Double> | No | No |
Generic metrics associated with the job as reported by the resource manager. |
nodeAccessPolicy | NodeAccessPolicy | Yes | No |
Specifies how node resources should be accessed. Note: If the job requirements array has more than one element that contains nodeAccessPolicy, only the first occurrence will be used. |
nodeAllocationPolicy | NodeAllocationPolicy | Yes | No |
Specifies how node resources should be selected and allocated to the job. Note: If the job requirements array has more than one element that contains nodeAllocationPolicy, only the first occurrence will be used. |
nodeCount | Integer | Yes | No |
The number of nodes required by the job. |
nodeSet | String | Yes | No |
The requested node set of the job. This must follow the format
|
nodes | Set<AllocatedNode> | No | No |
Nodes that have been allocated to meet this requirement. |
reservation | DomainProxy | No | No |
The allocated reservation (assigned after the job has a reservation). |
resourcesPerTask | Map<String, JobResource> | Yes | No |
Contains requirements for disk, memory, processors, swap, and generic resources. For disk, memory, and swap, the unit is MB. For each resource, the "dedicated" field can be set during POST. |
taskCount | Integer | Yes | No |
The number of tasks (processors) required by this job. |
tasksPerNode | Integer | Yes | No |
The number of tasks to map to each node. |
Field Name | Type | POST | PUT | Description |
---|---|---|---|---|
comparator | String | Yes | No |
The comparison operator. Valid values:
|
displayValue | String | Yes | No |
The display value for the required attribute. |
restriction | JobRequirementAttributeRestriction | Yes | No |
The restriction of this attribute. May be null, but defaults to JobRequirementAttributeRestriction.must. |
value | String | Yes | No |
The value of the required attribute. During POST, if value is missing, blank, or null, do not provide a comparator. |
JobRequirementAttributeRestriction
Represents a restriction for a job requirement attribute.
Value | Description |
---|---|
must |
Value | Description |
---|---|
OR | |
AND |
This enumeration describes how node resources will be shared by various tasks.
Node Allocation enumeration.
Field Name | Type | POST | PUT | Description |
---|---|---|---|---|
name | String | No | No | |
taskCount | Integer | No | No |
Represents counts of dedicated and utilized resources.
Value | Description |
---|---|
CANCEL | |
FAIL | |
HOLD | |
IGNORE | |
NOTIFY | |
REQUEUE |
Field Name | Type | POST | PUT | Description |
---|---|---|---|---|
isDestination | Boolean | No | No | |
isSource | Boolean | No | No | |
jobName | String | No | No | |
name | String | No | No |
Field Name | Type | POST | PUT | Description |
---|---|---|---|---|
state | JobState | No | No | |
stateExpected | JobState | No | No | |
stateLastUpdatedDate | Date | No | No | |
subState | JobSubState | No | No |
Value | Description |
---|---|
Idle | |
Starting | |
Running | |
Removed | |
Completed | |
Hold | |
Deferred | |
Vacated | |
NotQueued | |
Unknown | |
Staging | |
Suspended | |
Blocked |
Value | Description |
---|---|
Epilogue | |
Migrated | |
Preempted | |
Prologue |
Value | Description |
---|---|
generic | |
osprovision | |
osprovision2 | |
poweroff | |
poweron | |
reset | |
storage | |
vmmap | |
vmmigrate | |
vmtracking |
Value | Description |
---|---|
DESTROY | |
MIGRATE | |
MODIFY |
This enumeration describes the virtual machine requirements of a job
This class represents a job in the Moab Workload Manager. A job is a request for compute resources (CPUs, memory, storage) with which the requester can do work for a given amount of time. In an HPC environment, this might be a batch script to perform a Monte Carlo simulation. In a cloud environment, this would be a virtual machine and its associated storage. Moab will evaluate the request and assign the requested resources to the requester based on policies, current demand, and other factors in the data center. A job will also usually have some process that Moab starts automatically at the assigned start time. In an HPC environment, this can be starting a batch script on the assigned nodes. In a cloud environment, this can be starting provisioning processes to create the virtual machine and storage and install software on it.
Field Name | Type | POST | PUT | Description |
---|---|---|---|---|
id | String | No | No |
The unique identifier of this job. Note: this field is not user-assigned and is generated by the database. |
arrayIndex | Long | No | No |
If this job is a sub-job of a JobArray, this field contains the index of this job in the array. For example, if this job is |
arrayMasterName | String | No | No |
If this job is a sub-job of a JobArray, this field contains the name of the job array master. For example, if this job is |
attributes | Set<String> | Yes | No |
The list of generic attributes associated with this job. |
blocks | Set<JobBlock> | No | No |
Reasons the job is blocked from running. |
bypassCount | Integer | No | No |
The number of times the job has been backfilled. |
cancelCount | Integer | No | No |
The number of times a job has received a cancel request. |
commandFile | String | Yes | No |
The name of the job script file (absolute path). If commandFile is set and commandScript is not set, then MWS must have read access to the file. If commandFile and commandScript are both set, then MWS does not read the contents of the file, but it does provide the name of the file to Moab. |
commandLineArguments | String | Yes | No |
The command line arguments passed to the job script specified by commandFile or commandScript. |
commandScript | String | Yes | No |
The contents of the job script. This field must be Base64-encoded. |
completionCode | Integer | No | No |
The exit code from this job. |
cpuTime | Long | No | No |
CPU usage time in seconds as reported by the resource manager. |
credentials | JobCredentials | Yes | Yes |
The credentials (user and group, for example) associated with this job. |
customName | String | Yes | Yes |
The user-specified name of this job. |
dates | JobDates | Yes | Yes |
Various dates associated with this job. |
deferCount | Integer | No | No |
The number of times a job has been deferred. |
dependencies | Set<JobDependency> | Yes | No |
Dependencies that must be fulfilled before the job can start. |
description | String | No | No |
The description of the job. Can be set only in a job template. |
duration | Long | Yes | Yes |
The length of time in seconds requested for the job. Note that it is possible to set duration to "INFINITY" if the AllowInfiniteJobs flag is set on the scheduler in the moab.cfg. |
durationActive | Long | No | No |
The length of time in seconds the job has been active or running. |
durationQueued | Long | No | No |
The length of time in seconds the job has been eligible to run in the queue. |
durationRemaining | Long | No | No |
An estimate of the time remaining, in seconds, before the job will complete. |
durationSuspended | Long | No | No |
The length of time in seconds the job has been suspended. |
emailNotifyAddresses | Set<String> | Yes | No |
The list of addresses to whom email is sent by the execution server. |
emailNotifyTypes | Set<JobEmailNotifyType> | Yes | No |
The list of email notify types attached to the job. |
environmentRequested | Boolean | Yes | No |
Setting this field to true tells the Moab Workload Manager to set various variables, if populated, in the job's environment. |
environmentVariables | Map<String, Map> | Yes | No |
The list of environment variables for this job. |
epilogScript | String | Yes | No |
The path to the TORQUE epilog script. |
flags | Set<JobFlag> | Yes | Yes |
The flags that are set on this job. |
holdDate | Date | No | No |
The date the most recent hold was placed on the job. |
holdReason | JobHoldReason | No | No |
The reason the job is on hold. |
holds | Set<JobHoldType> | Yes | Yes |
The holds that are set on the job. The "User" hold type is valid during POST. |
initialWorkingDirectory | String | Yes | No |
The path to the directory in which the job will be started. |
isActive | Boolean | No | No |
True if the job is active, false if the job is complete. |
jobGroup | String | Yes | No |
The job group to which this job belongs (different from credentials.group). |
masterNode | DomainProxy | No | No |
The first node in the list of allocated nodes for this job. For TORQUE jobs, this represents the "mother superior." |
memorySecondsDedicated | Double | No | No |
The memory seconds dedicated to the job as reported by its resource manager. Not all resource managers provide this information. |
memorySecondsUtilized | Double | No | No |
The memory seconds utilized by the job as reported by its resource manager. Not all resource managers provide this information. |
messages | Set<Message> | No | Yes |
The list of messages associated with the job. The "message" field is valid during PUT. |
migrateCount | Integer | No | No |
The number of times the job has been migrated. |
minimumPreemptTime | Long | No | No |
The minimum length of time, in seconds, an active job must be running before it is eligible for preemption. |
mwmName | String | No | No |
The name of the Moab Workload Manager instance that owns this job. |
name | String | No | No |
The name of this job. This name is unique per instance of Moab Workload Manager (i.e. not globally). |
nodesExcluded | Set<DomainProxy> | Yes | No |
The list of nodes that should not be considered for this job. |
nodesRequested | Set<DomainProxy> | Yes | No |
The exact set, superset, or subset of nodes on which this job must run. (See also: nodesRequestedPolicy.) |
nodesRequestedPolicy | JobHostListMode | Yes | No |
Indicates an exact set, superset, or subset of nodes on which the job must run. Only relevant if nodesRequested is provided. (See also: nodesRequested.) |
partitionAccessList | Set<String> | No | No |
The list of partitions that this job can access. |
partitionAccessListRequested | Set<String> | Yes | Yes |
The list of partitions that this job has requested. |
preemptCount | Integer | No | No |
The number of times the job has been preempted. |
priorities | JobPriority | Yes | Yes |
The list of priorities for the job. |
processorSecondsDedicated | Double | No | No |
The processor seconds dedicated to the job as reported by its resource manager. Not all resource managers provide this information. |
processorSecondsLimit | Double | No | No |
The limit for processorSecondsUtilized. |
processorSecondsUtilized | Double | No | No |
The processor seconds utilized by the job as reported by its resource manager. Not all resource managers provide this information. |
prologScript | String | Yes | No |
The path to the TORQUE prolog script. |
queueStatus | JobQueueStatus | No | No |
The status of the job in its queue. |
rejectPolicies | Set<JobRejectPolicy> | No | No |
The list of policies enabled when a job is rejected. |
requirements | Set<JobRequirement> | Yes | Yes |
The list of items required for this job to run. Only JobRequirement.features is valid during PUT. |
reservationRequested | DomainProxy | Yes | Yes |
The reservation that the job requested. |
resourceFailPolicy | JobResourceFailPolicyType | Yes | No |
The policy that dictates what should happen to the job if it is running and at least one of the resources it is using fails. |
resourceManagerExtension | String | Yes | No |
If provided during POST, this string will be added to the resource manager extension section of the job submission. Example: "bandwidth=120;queuejob=false" |
resourceManagers | Set<ResourceManager> | No | No |
The list of resource managers associated with this job. |
rmStandardErrorFilePath | String | No | No |
The path to the remote file containing the standard error of the job. |
rmStandardOutputFilePath | String | No | No |
The path to the remote file containing the standard output of the job. |
standardErrorFilePath | String | Yes | No |
The path to the file containing the standard error of the job. |
standardOutputFilePath | String | Yes | No |
The path to the file containing the standard output of the job. |
startCount | Integer | No | No |
The number of times the job has been started. |
states | JobStateInformation | No | No |
Information about the state of the job. |
submitHost | String | Yes | No |
The host from which the job was submitted. |
systemJobAction | String | No | No |
The action the system job will take. |
systemJobType | JobSystemJobType | No | No |
The type of system job. In the Moab Cloud Suite, this will usually be "vmtracking" or "generic." |
targetedJobAction | JobActionType | No | No |
The action that this job is performing on another job. |
targetedJobName | String | No | No |
The name of the job on which this job is performing the targetedJobAction. |
templates | Set<DomainProxy> | Yes | No |
The list of all job templates to be set on this job. |
triggers | Set<String> | No | No |
The list of triggers associated with this job. |
variables | Map<String, Map> | Yes | Yes |
The list of variables that this job owns or sets on completion. |
virtualContainers | Set<DomainProxy> | Yes | No |
When submitting this job, add it to the specified existing virtual container. Valid during POST, but only one virtual container can be specified. |
virtualMachines | Set<DomainProxy> | No | No |
The list of virtual machines that are allocated to this job. |
vmUsagePolicy | VMUsagePolicy | Yes | No |
The requested Virtual Machine Usage Policy for this job. |
Field Name | Type | POST | PUT | Description |
---|---|---|---|---|
category | JobBlockCategory | No | No | |
message | String | No | No | |
type | JobBlockType | No | No |
Value | Description |
---|---|
depend | |
jobBlock | |
migrate |
Value | Description |
---|---|
ActivePolicy | |
BadUser | |
Dependency | |
EState | |
FairShare | |
Hold | |
IdlePolicy | |
LocalPolicy | |
NoClass | |
NoData | |
NoResource | |
NoTime | |
PartitionAccess | |
Priority | |
RMSubmissionFailure | |
StartDate | |
State | |
SysLimits |
Moab Workload Manager supports the concept of credentials, which provide a means of attributing policy and resource access to entities such as users and groups. These credentials allow specification of job ownership, tracking of resource usage, enforcement of policies, and many other features.
Field Name | Type | POST | PUT | Description |
---|---|---|---|---|
name | String | Yes | No |
The name of the object on on which the job is dependent. |
type | JobDependencyType | Yes | No |
The type of job dependency. Only set is valid for POST. |
value | String | No | No |
Represents the type of a job dependency. For now, only the "set" type is supported.
Value | Description |
---|---|
set |
Value | Description |
---|---|
JobStart | |
JobEnd | |
JobFail | |
All |
This enumeration specifies the flag types of a job.
Value | Description |
---|---|
NONE | |
BACKFILL | The job is using backfill to run. |
COALLOC | The job can use resources from multiple resource managers and partitions. |
ADVRES | The job requires the use of a reservation. |
NOQUEUE | The job will attempt to execute immediately or fail. |
ARRAYJOB | The job is part of a job array. |
ARRAYJOBPARLOCK | This array job will only run in one partition. |
ARRAYJOBPARSPAN | This array job will span partitions (default). |
ARRAYMASTER | This job is the master of a job array. |
BESTEFFORT | The job will succeed if even partial resources are available. |
RESTARTABLE | The job is restartable. |
SUSPENDABLE | The job is suspendable. |
HASPREEMPTED | This job preempted other jobs to start. |
PREEMPTEE | The job is a preemptee and therefore can be preempted by other jobs. |
PREEMPTOR | The job is a preemptor and therefore can preempt other jobs. |
RSVMAP | The job is based on a reservation. |
SPVIOLATION | The job was started with a soft policy violation. |
IGNNODEPOLICIES | The job will ignore node policies. |
IGNPOLICIES | The job will ignore idle, active, class, partition, and system policies. |
IGNNODESTATE | The job will ignore node state in order to run. |
IGNIDLEJOBRSV | The job can ignore idle job reservations. The job granted access to all idle job reservations. |
INTERACTIVE | The job needs to interactive input from the user to run. |
FSVIOLATION | The job was started with a fairshare violation. |
GLOBALQUEUE | The job is directly submitted without doing any authentication. |
NORESOURCES | The job is a system job that does not need any resources. |
NORMSTART | The job will not query a resource manager to run. |
CLUSTERLOCKED | The job is locked into the current cluster and cannot be migrated elsewhere. This is for grid mode. |
FRAGMENT | The job can be run across multiple nodes in individual chunks. |
SYSTEMJOB | The job is a system job which simply runs on the same node that Moab is running on. This is usually used for running scripts and other executables in workflows. |
ADMINSETIGNPOLICIES | The IGNPOLICIES flag was set by an administrator. |
EXTENDSTARTWALLTIME | The job duration (walltime) was extended at job start. |
SHAREDMEM | The job will share its memory across nodes. |
BLOCKEDBYGRES | The job's generic resource requirement caused the job to start later. |
GRESONLY | The job is requesting only generic resources, no compute resources. |
TEMPLATESAPPLIED | The job has had all applicable templates applied to it. |
META | META job, just a container around resources. |
WIDERSVSEARCHALGO | This job prefers the wide search algorithm. |
VMTRACKING | The job is a VMTracking job for an externally-created VM (via job template). |
DESTROYTEMPLATESUBMITTED | A destroy job has already been created from the template for this job. |
PROCSPECIFIED | The job requested processors on the command line. |
CANCELONFIRSTFAILURE | Cancel job array on first array job failure. |
CANCELONFIRSTSUCCESS | Cancel job array on first array job success. |
CANCELONANYFAILURE | Cancel job array on any array job failure. |
CANCELONANYSUCCESS | Cancel job array on any array job success. |
CANCELONEXITCODE | Cancel job array on a specific exit code. |
NOVMMIGRATE | Do not migrate the virtual machine that this job sets up. |
PURGEONSUCCESSONLY | Only purge the job if it completed successfully |
ALLPROCS | Each job compute task requests all the procs on its node |
Value | Description |
---|---|
Admin | |
NoResources | |
SystemLimitsExceeded | |
BankFailure | |
CannotDebitAccount | |
InvalidAccount | |
RMFailure | |
RMReject | |
PolicyViolation | |
CredAccess | |
CredHold | |
PreReq | |
Data | |
Security | |
MissingDependency |
Value | Description |
---|---|
User | |
System | |
Batch | |
Defer | |
All |
A reference to an object contained within an object. For example, a Virtual Machine object contains a reference to the Node on which it is running. That reference is represented by this class.
Field Name | Type | POST | PUT | Description |
---|---|---|---|---|
name | String | Yes | No |
The name of the object. |
Value | Description |
---|---|
superset | |
subset | |
exactset |
Value | Description |
---|---|
active | |
blocked | |
completed | |
eligible |
Value | Description |
---|---|
CANCEL | |
HOLD | |
IGNORE | |
RETRY |
Field Name | Type | POST | PUT | Description |
---|---|---|---|---|
architecture | String | Yes | No |
The architecture required by the job. |
attributes | Map<String, JobRequirementAttribute> | Yes | No |
Required node attributes with version number support. |
features | Set<String> | No | Yes |
The list of node features the job is scheduled against. |
featuresExcluded | Set<String> | Yes | No |
Excluded node features. That is, do not select nodes with these features. (See also: featuresExcludedMode.) |
featuresExcludedMode | JobRequirementFeaturesMode | Yes | No |
Indicates whether excluded features should be AND'ed or OR'd. The default is AND. Only relevant if featuresExcluded is provided. (See also: featuresExcluded.) |
featuresRequested | Set<String> | Yes | No |
Requested node features. (See also: featuresRequestedMode.) |
featuresRequestedMode | JobRequirementFeaturesMode | Yes | No |
Indicates whether requested features should be AND'ed or OR'd. The default is AND. Only relevant if featuresRequested is provided. (See also: featuresRequested.) |
image | String | Yes | No |
The image required by the job. |
index | Integer | No | No |
The index of the requirement, starting with 0. |
metrics | Map<String, Double> | No | No |
Generic metrics associated with the job as reported by the resource manager. |
nodeAccessPolicy | NodeAccessPolicy | Yes | No |
Specifies how node resources should be accessed. Note: If the job requirements array has more than one element that contains nodeAccessPolicy, only the first occurrence will be used. |
nodeAllocationPolicy | NodeAllocationPolicy | Yes | No |
Specifies how node resources should be selected and allocated to the job. Note: If the job requirements array has more than one element that contains nodeAllocationPolicy, only the first occurrence will be used. |
nodeCount | Integer | Yes | No |
The number of nodes required by the job. |
nodeSet | String | Yes | No |
The requested node set of the job. This must follow the format
|
nodes | Set<AllocatedNode> | No | No |
Nodes that have been allocated to meet this requirement. |
reservation | DomainProxy | No | No |
The allocated reservation (assigned after the job has a reservation). |
resourcesPerTask | Map<String, JobResource> | Yes | No |
Contains requirements for disk, memory, processors, swap, and generic resources. For disk, memory, and swap, the unit is MB. For each resource, the "dedicated" field can be set during POST. |
taskCount | Integer | Yes | No |
The number of tasks (processors) required by this job. |
tasksPerNode | Integer | Yes | No |
The number of tasks to map to each node. |
Field Name | Type | POST | PUT | Description |
---|---|---|---|---|
comparator | String | Yes | No |
The comparison operator. Valid values:
|
displayValue | String | Yes | No |
The display value for the required attribute. |
restriction | JobRequirementAttributeRestriction | Yes | No |
The restriction of this attribute. May be null, but defaults to JobRequirementAttributeRestriction.must. |
value | String | Yes | No |
The value of the required attribute. During POST, if value is missing, blank, or null, do not provide a comparator. |
JobRequirementAttributeRestriction
Represents a restriction for a job requirement attribute.
Value | Description |
---|---|
must |
Value | Description |
---|---|
OR | |
AND |
This enumeration describes how node resources will be shared by various tasks.
Node Allocation enumeration.
Field Name | Type | POST | PUT | Description |
---|---|---|---|---|
name | String | No | No | |
taskCount | Integer | No | No |
Represents counts of dedicated and utilized resources.
Value | Description |
---|---|
CANCEL | |
FAIL | |
HOLD | |
IGNORE | |
NOTIFY | |
REQUEUE |
Field Name | Type | POST | PUT | Description |
---|---|---|---|---|
isDestination | Boolean | No | No | |
isSource | Boolean | No | No | |
jobName | String | No | No | |
name | String | No | No |
Field Name | Type | POST | PUT | Description |
---|---|---|---|---|
state | JobState | No | No | |
stateExpected | JobState | No | No | |
stateLastUpdatedDate | Date | No | No | |
subState | JobSubState | No | No |
Value | Description |
---|---|
Idle | |
Starting | |
Running | |
Removed | |
Completed | |
Hold | |
Deferred | |
Vacated | |
NotQueued | |
Unknown | |
Staging | |
Suspended | |
Blocked |
Value | Description |
---|---|
Epilogue | |
Migrated | |
Preempted | |
Prologue |
Value | Description |
---|---|
generic | |
osprovision | |
osprovision2 | |
poweroff | |
poweron | |
reset | |
storage | |
vmmap | |
vmmigrate | |
vmtracking |
Value | Description |
---|---|
DESTROY | |
MIGRATE | |
MODIFY |
This enumeration describes the virtual machine requirements of a job
Related Topics