TaskInfoProviderFetchTasksToRun Method |
Gets scheduled tasks to run, the process is expected to set the next run time for next task iteration.
Namespace: CMS.SchedulerAssembly: CMS.Scheduler (in CMS.Scheduler.dll) Version: 11.0.0
Syntax public static InfoDataSet<TaskInfo> FetchTasksToRun(
string siteName,
string serverName,
int lastProcessedTaskId = 0,
Nullable<bool> useExternalService = null
)
Parameters
- siteName
- Type: SystemString
Site name - serverName
- Type: SystemString
Server name - lastProcessedTaskId (Optional)
- Type: SystemInt32
Identifier of last processed task. IDs of all fetched tasks will be higher than this one. - useExternalService (Optional)
- Type: SystemNullableBoolean
Indicates whether get tasks for external service. If null, both tasks for external service and all other tasks are returned.
Return Value
Type:
InfoDataSetTaskInfoDataset with information about scheduled tasks
Remarks Only certain small number of tasks is fetched by the method.
See Also