ExcelServicesJob.RunNow Method
Adds an event handler for the TaskCompleted event prior to executing the private RunNowAsync method.
Namespace: Microsoft.Office.Excel.Server.Addins.ComputeCluster
Assembly: Microsoft.Office.Excel.Server.Addins.ComputeCluster (in Microsoft.Office.Excel.Server.Addins.ComputeCluster.dll)
Syntax
'Declaration
Public Sub RunNow ( _
Timeout As Integer, _
ResultsPauseInterval As Integer _
)
'Usage
Dim instance As ExcelServicesJob
Dim Timeout As Integer
Dim ResultsPauseInterval As Integer
instance.RunNow(Timeout, ResultsPauseInterval)
public void RunNow(
int Timeout,
int ResultsPauseInterval
)
Parameters
- Timeout
Type: System.Int32
Indicates the time in seconds to pause while retrieving results.
- ResultsPauseInterval
Type: System.Int32
Indicates the time in minutes to pause while a thread waits to determine if a compute cluster job responds.
Remarks
This method executes the input workbook in the compute cluster and returns the results asynchronously through the TaskCompleted event. The private RunNowAsync method blocks its thread until all tasks have completed.
You can retrieve the results of the execution in each node as they are completed, by handling the TaskCompleted event. This method does not create a schedule for the work to be performed.
See Also
Reference
Microsoft.Office.Excel.Server.Addins.ComputeCluster Namespace