This function submits the job to virtual cluster. IMPORTANT: If you are using this function to submit a job, please
set the vcName, proxy, and userName credentials using VC.Setup(...) function first. This way, you don't have to pass the
vcName, proxy, and userName credentials every time. If you would like to just pass those credentials with the submit
function, please use the other overload of this function.
Namespace: ScopeClientAssembly: Scope (in Scope.exe) Version: 10.2.0.0 (10.2.2.0)
Syntax
C# |
---|
public static JobInfo Submit(
string runtimeName,
string dryadNebulaVersion,
int vcPercentAllocation,
string friendlyName,
int priority,
Dictionary<string, string> parameters,
string scopeScriptFileName,
bool compression
) |
Visual Basic |
---|
Public Shared Function Submit ( _
runtimeName As String, _
dryadNebulaVersion As String, _
vcPercentAllocation As Integer, _
friendlyName As String, _
priority As Integer, _
parameters As Dictionary(Of String, String), _
scopeScriptFileName As String, _
compression As Boolean _
) As JobInfo |
Visual C++ |
---|
public:
static JobInfo^ Submit(
String^ runtimeName,
String^ dryadNebulaVersion,
int vcPercentAllocation,
String^ friendlyName,
int priority,
Dictionary<String^, String^>^ parameters,
String^ scopeScriptFileName,
bool compression
) |
Parameters
- runtimeName
- Type: String
Runtime Name. Pass null to use the
default SCOPE version.
- dryadNebulaVersion
- Type: String
Version of the Dryad Nebula to be used. Pass null to
use the default version.
- vcPercentAllocation
- Type: Int32
This should be a number between 1 and 100, inclusive. Passing
-1 will use the default value.
- friendlyName
- Type: String
Friendly name for the job.
- priority
- Type: Int32
Priority of the job. Lower values have higher priority.
- parameters
- Type: Dictionary<(Of <(<'String, String>)>)>
This variable is used to pass parameters to the SCOPE script.
The key of each entry is the parameter name and the value of each entry is the parameter
value. If you don't have any parameters to pass, pass null.
- scopeScriptFileName
- Type: String
Name of the SCOPE script file.
- compression
- Type: Boolean
True if the compression needs to be used in uploading embedded
resources and all other requests to the VC.
Return Value
If the job was submitted successfully, a
JobInfo object will be returned.
Please look
VcClient library to know more about
JobInfo.
See Also