Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ISchedulerJob.SubmitTasks Method

Submits the specified tasks to the job.


Namespace: Microsoft.Hpc.Scheduler
Assembly: Microsoft.Hpc.Scheduler (in Microsoft.Hpc.Scheduler.dll)

'Usage
Dim instance As ISchedulerJob
Dim taskList As ISchedulerTask()

instance.SubmitTasks(taskList)

[ComVisibleAttribute(false)] 
void SubmitTasks (
	ISchedulerTask[] taskList
)
/** @attribute ComVisibleAttribute(false) */ 
void SubmitTasks (
	ISchedulerTask[] taskList
)
ComVisibleAttribute(false) 
function SubmitTasks (
	taskList : ISchedulerTask[]
)

Parameters

taskList

An array of ISchedulerTask interfaces to the tasks that you want to submit.

You can call this method any time after you add to the job to the HPC Job Scheduler Service. Before you add the job, you must call the AddTask or AddTasks method to add tasks to the job. After you submit the job by calling the IScheduler.SubmitJob or SubmitJobById method, you must call the SubmitTask, SubmitTaskById, or SubmitTasks method to add tasks to the job if you want the tasks to run. If you call the AddTask or AddTasks method after you submit the job, the tasks do not run until you submit the tasks. You cannot submit tasks after the job finishes.

Unless you specify dependencies for the tasks, the tasks you add to a job do not necessarily run in any particular order, except that node preparation and node release tasks are the first and last tasks to run on a node, respectively. The HPC Job Scheduler Service tries to run as many tasks in parallel as it can, which may preclude the tasks from running in the order in which you added them.

To submit a single task to the job, use the SubmitTask or ISchedulerJob.SubmitTaskById method.

For better performance, call the SubmitTasks method to add several tasks to a job at once, instead of calling the SubmitTask or ISchedulerJob.SubmitTaskById method multiple times inside a loop.

Platform Note: This method was introduced in Windows HPC Server 2008 R2 and is not supported in previous versions.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP, Windows Vista, Windows 7, Windows 8, Windows Server 2003, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012

Target Platforms

Windows XP, Windows Vista, Windows 7, Windows 8, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, with HPC Pack Client Utilities




Build Date:

2013-04-22

Community Additions

ADD
Show:
© 2015 Microsoft