The xgSubmit.exe tool is used to submit tasks to the IncrediBuild Grid Engine. Submitted tasks are queued for execution and executed on either a remote or local CPU, as soon as one becomes available. Each submitted task can be assigned a group identifier using the /group argument. Tasks of the group are executed in parallel by IncrediBuild. xgWait.exe can be used throughout the script to pause execution until all tasks with a given group identifier have completed. Note that the purpose of the group identifier is only to group a set of submitted tasks; it is NOT related in any way to Coordinator Build Groups.
Note: Commands specified in the command file are executed independently, and not necessarily in the specified order. In order to create dependencies, use the /group argument in conjunction with the xgWait command in your script.
xgSubmit.exe can be used to submit a single task or a set of tasks specified in a command file (for better performance when submitting a large group of tasks).
Usage
The following syntax is used in running xgSubmit:
xgSubmit [/group=<Group Identifier>] [/wait] /allowremote=[allow_remote] [/caption] /commandfile <Path to Command File> /command <Original Command line>
Option | Function | Values/Notes | |||
---|---|---|---|---|---|
|
| ||||
|
| ||||
|
|
| |||
|
| ||||
|
| xgWait.exe /all is implicitly called at the end of the script/application's execution, in order to allow all tasks submitted with xgSubmit.exe to complete before returning control to the initiating Agent. | |||
|
|
This syntax is used to submit a single task to the Grid Engine queue. The usage syntax is:
Note: The "/command" argument should always be specified last, followed by the command line to be submitted for execution.
The arguments are:
- /group
- /wait
- /allowremote=[on|off]
- /caption
See explanations in above table.
This syntax can be used for better performance when submitting a large set of tasks belonging to the same task group. A command file containing the command lines to be submitted separated by a newline character is given as input. xgSubmit.exe then reads and submits the commands specified in the command file. The usage syntax is:
Note: The "/commandfile" argument should always be specified last, followed by the path to the file containing the commands to be submitted.
Arguments:
- /group
- /wait
- /allowremote=[on|off]
In many cases, there is a need to ensure that certain tasks do not begin before others are completed. In order to create such dependencies, you can group tasks so that a defined Group can be processed in parallel, but a sequence of Groups will run serially.