Submits job to the job scheduler so the job scheduler can add the job to its queue.
Namespace: AGI.Parallel.Client
Assembly: AGI.Parallel.Client (in AGI.Parallel.Client.dll) Version: 1.2.0.275 (1.2.0.275)

Syntax

C#
void SubmitJob(
        Job job,
        Action<Task> taskCompletedCallback,
        Action<TaskStatus, TaskStatus, Task, TaskState> taskStateChangedCallback,
        Action<JobState> jobSubmittedCallback,
        Action jobCompletedCallback,
        Action<Task, TaskProgressInformation> taskProgressCallback
)
Visual Basic
Sub SubmitJob ( _
        job As Job, _
        taskCompletedCallback As Action(Of Task), _
        taskStateChangedCallback As Action(Of TaskStatus, TaskStatus, Task, TaskState), _
        jobSubmittedCallback As Action(Of JobState), _
        jobCompletedCallback As Action, _
        taskProgressCallback As Action(Of Task, TaskProgressInformation) _
)

Parameters

job
Type: AGI.Parallel.Client..::..Job
The job to be submitted.
taskCompletedCallback
Type: System..::..Action<(Of <(<'Task>)>)>
The task completed callback.
taskStateChangedCallback
Type: System..::..Action<(Of <(<'TaskStatus, TaskStatus, Task, TaskState>)>)>
The task state changed callback.
jobSubmittedCallback
Type: System..::..Action<(Of <(<'JobState>)>)>
The job submitted callback.
jobCompletedCallback
Type: System..::..Action
The job completed callback.
taskProgressCallback
Type: System..::..Action<(Of <(<'Task, TaskProgressInformation>)>)>
The task progress callback.

Exceptions

Exception Condition
AGI.Parallel.Client..::..JobSchedulerException If a task or task environment cannot be serialized.

See Also