The Options Block
Use the options block to set Service options and description information.
Use the following directives for features specific to PDriver jobs:
|
Keyword |
Argument |
Description |
|
|
|
The default way to handle errors. See “Builtin Commands” below for details. |
|
|
A numeric expression |
The number of times to resubmit a failed task. |
|
|
|
Whether to cancel the entire job when a single task fails. The default is |
|
|
An expression evaluating to |
This argument is the same as |
Set standard options (described in the C++ API reference documentation for the Options object) with the jobOption directive:
jobOption "engineBlacklisting" "true" jobOption "priority" "8"
Set elements of the job description with the jobDescription directive:
jobDescription "serviceName" "Distributed Grep"
Each argument to jobOption or jobDescription must be a string or an expression that evaluates to a string. Literal numbers are not allowed.
The following jobOption directives are common to both PDriver and CPPDriver:
|
Keyword |
Argument |
Description |
|
|
string |
An email address that is notified when a Service is completed. |
|
|
integer |
The priority of this Service. The default value is 5. |
|
|
integer |
If a running task exceeds this amount of time in seconds, the task is rescheduled or retried based on the setting of |
|
|
|
Whether to automatically cancel the Service on a task failure. Possible values include 0 ( |
|
|
|
Whether to compress the task, input, and output data. Compression time is minimal and recommended for data sizes greater than 10K for each input or output. The default is |
|
|
|
Whether to kill and restart an Engine if a task is canceled. If Tasks are canceled when canceled in the Administration Tool, when a Service is canceled, and when another Engine completes the task due to redundant rescheduling. |
|
|
integer |
The maximum number of tasks for each submission or retrieval message. Regardless of this number, messages do not exceed 100 KB. The default is 100. |
|
|
integer |
The number of tasks in an auto-packed task. In this mode, a tasklet processes multiple task inputs in one Service routine by packing task inputs into a single task and calling your Service routine on all inputs. Use this mode when there are more inputs than Engines, or tasks are of short duration, to maximize efficient use of memory and Engine processing power. If inputs are added outside of Task IDs in the Administration Tool are the IDs of the task packages, so they do not directly correspond to the task ID from the Driver and Engine’s point of view.
The default value is 0. |
|
|
string |
A directory in which the Driver and UNIX Engines exchange data. This directory must be an NFS mounted directory to which all UNIX Engines working on this job have read/write access. This overrides use of the file servers on the Driver and Engines, and is optimally a directory local to this Driver for minimum network bandwidth. If set and using Windows Engines, the Windows shared directory must also be set to the equivalent of this directory. |
|
|
string |
A directory in which the Driver and Engines exchange data. This directory must be a Windows shared directory to which all Windows Engines working on this job have read/write access. This overrides use of the file servers on the Driver and Engines, and is optimally a directory local to this Driver for minimum network bandwidth. Typically, the share is Windows UNC format, such as If set and using UNIX Engines, the UNIX shared directory must also be set to the equivalent of this directory. |
|
|
|
Enables checkpointing for this Service. The default value is |
|
|
integer |
The maximum number of Engines that can be working on a task at a time. The default value is infinite. |
|
|
|
Whether the status of the job in the Services > Services > Service Session Admin page expires. If |
|
|
|
Whether to prevent Engines that fail at a task from taking other tasks from that Service. The default value is |
|
|
|
Whether to unload the native library once the Service finishes. Set the value to |
|
|
|
When to purge Service invocation data from display in the Administration Tool. The default value is 1 ( |
|
|
integer |
The maximum number of retries allowed for any task that fails. A retry occurs if the task failed and |
|
|
integer |
The maximum number of redundant reschedules allowed for any task, if any of the rescheduler strategies are in effect on the Broker. The default value is 3. |
|
|
|
How a task is dealt with if it exceeds the |
|
|
|
Whether an Engine restarts itself on a Service invocation failure. The default is |
|
|
|
Whether a Service request is retried on a failure. If |
|
|
string |
A Grid Library that is used for this Service. The string argument specifies the name of the Grid Library. |
|
|
string |
The version of the Grid Library that is used for this Service. The string argument specifies the version of the Grid Library. |
JobDescriptions
All Services have a JobDescription object created upon instantiation, with default settings. Predefined properties are stored in the database. You can define any other properties. The following JobDescriptions properties are set by default:
|
Property |
Description |
|
|
The application name. |
|
|
The application description. |
|
|
A department name associated with the Service. |
|
|
A group name associated with the Service. |
|
|
An individual’s name associated with the Service. |
|
|
The name of the Service. By default, this is the Service ID. |
|
|
The name of the class in the Service. |
|
|
The type of Service. |