AType | |||
Description: | Specifies what kind of action the trigger will take when it fires. | ||
Possible Values: | cancel changeparam jobpreempt exec query internal |
||
Usage Notes: | jobpreempt indicates that the trigger should preempt all jobs currently allocating resources assigned to
the trigger's parent object. cancel and jobpreempt only apply to reservation triggers. query allows a trigger to import variables from another object. |
||
Action | |||
Description: | For exec atype triggers, signifies executable and arguments. For jobpreempt atype triggers, signifies PREEMPTPOLICY to apply to jobs that are running on allocated resources. For changeparam atype triggers, specifies the parameter to change and its new value (using the same syntax and behavior as the changeparam command). | ||
Possible Values: | String | ||
Usage Notes: | |||
BlockTime | |||
Description: | Time (in seconds) Moab will suspend normal operation to wait for trigger execution to finish. | ||
Possible Values: | [[HH:]MM:]SS | ||
Usage Notes: | Use caution as Moab will completely stop normal operation until BlockTime expires. | ||
Description | |||
Description: | A string containing a description of the trigger. | ||
Possible Values: | |||
Usage Notes: | May not contain any quotes (" or '). | ||
EType | |||
Description: | The type of event that signals that the trigger can fire. | ||
Possible Values: | cancel checkpoint create end epoch fail hold migrate modify preempt standing start threshold |
||
Usage Notes: | The threshold value only applies to reservation triggers. Cancel triggers are the only triggers to fire when the parent object is either canceled or deleted (though its dependencies, if any, must still be satisfied). Hold, preempt, and checkpoint only apply to job triggers. Standing allows regular periodic triggers that fire at regular offsets (standing triggers automatically set the interval and multifire attributes). | ||
ExpireTime | |||
Description: | Time at which trigger should be terminated if it has not already been activated. | ||
Possible Values: | |||
Usage Notes: | |||
FailOffset | |||
Description: | Specifies the time (in seconds) that the threshold condition must exist before the trigger fires. | ||
Possible Values: | [[HH:]MM:]SS | ||
Usage Notes: | |||
Flags | |||
Description: | Specifies various trigger behaviors and actions. | ||
Possible Values: | (See Table 2.) | ||
Usage Notes: | |||
Interval | |||
Description: | When used in conjunction with MultiFire and RearmTime trigger will fire at regular intervals. | ||
Possible Values: | <BOOLEAN> | ||
Usage Notes: | Can be used with EType epoch to create a Standing Trigger. | ||
MaxRetry | |||
Description: | Specifies the number of times Action will be attempted before the trigger is designated a failure. | ||
Possible Values: | Integer | ||
Usage Notes: | If Action fails, the trigger will be restarted immediately (up to MaxRetry times). If it fails more than MaxRetry times, the trigger will be considered to have failed. This restart ignores FailOffset and RearmTime. Multifire does not need to be specified in order to get this behavior. | ||
MultiFire | |||
Description: | Specifies whether this trigger can fire multiple times. | ||
Possible Values: | <BOOLEAN> | ||
Usage Notes: | |||
Name | |||
Description: | Name of trigger | ||
Possible Values: | String | ||
Usage Notes: | Because Moab uses its own internal ID to distinguish triggers, the Name need not be unique. Only the first 16 characters of Name are stored by Moab. | ||
Offset | |||
Description: | Relative time offset from event when trigger can fire. | ||
Possible Values: | [-][[HH:]MM:]SS | ||
Usage Notes: | Offset cannot be used with cancel.
| ||
Period | |||
Description: | Can be used in conjunction with Offset to have a trigger fire at the beginning of the specified period. | ||
Possible Values: | Hour Day Week Month |
||
Usage Notes: | Can be used with EType epoch to create a standing trigger. | ||
RearmTime | |||
Description: | Time between MultiFire triggers; rearm time is enforced from the trigger event time. | ||
Possible Values: | [[HH:]MM:]SS | ||
Usage Notes: | |||
Requires | |||
Description: | Variables this trigger requires to be set or not set before it will fire. | ||
Possible Values: | '.' delimited string | ||
Usage Notes: | Preceding the string with an exclamation mark (!) indicates this variable must NOT be set. Used in conjunction with Sets to create trigger dependencies. |
||
Sets | |||
Description: | Variable values this trigger sets upon success or failure. | ||
Possible Values: | '.' delimited string | ||
Usage Notes: | Preceding the string with an exclamation mark (!) indicates this variable is set upon trigger failure. Preceding the string with a caret (^) indicates this variable is to be exported to the parent object when the current object is destroyed through a completion event. Used in conjunction with Requires to create trigger dependencies. |
||
Threshold | |||
Description: | Reservation usage threshold - When reservation usage drops below Threshold, trigger will fire. | ||
Possible Values: | {<METRIC>[<METRICNAME>]}{> >= < <= == !=}<FLOAT> Where <METRIC> is one of usage gmetric availability backlog xfactor queuetime |
||
Usage Notes: | Threshold usage support is only enabled for reservations and applies to percent processor utilization. gmetric thresholds are supported with job, node, credential, and reservation triggers. (See 3.4.3 Threshold Triggers for more information.) | ||
Timeout | |||
Description: | Time allotted to this trigger before it is marked as unsuccessful and its process (if any) killed. | ||
Possible Values: | [+|-][[HH:]MM:]SS | ||
Usage Notes: | Specifying '+' or a '-' calculates the timeout relative to the parent object's duration. | ||
UnSets | |||
Description: | Variable this trigger destroys upon success or failure. | ||
Possible Values: | '.' delimited string | ||
Usage Notes: |
Flag | Description |
---|---|
attacherror | If the trigger outputs anything to stderr, Moab will attach this as a message to the trigger object. |
cleanup | If the trigger is still running when the parent object completes or is canceled, the trigger will be killed. |
globalvars | The trigger will look in the name space of all nodes with the globalvars flag in addition to its own name space. A specific node to search can be specified using the following format: globalvars+node_id |
interval | Trigger is periodic. |
multifire | Trigger can fired multiple times. |
probe | The trigger's stdout will be monitored. |
probeall | The trigger's stdout will be monitored. |
user | The trigger will execute under the user ID of the object's owner. If the parent object is sched, the user to run under may be explicitly specified using the format user+<username>, for example flags=user+john: |
When specifying multiple flags, each flag can be delimited by colons (:) or with square brackets ([ and ]). For example: Flags=[user][cleanup][probe] or Flags=user:cleanup:probe |