Click or drag to resize
TaskInfoProviderFetchTasksToRun Method
Gets scheduled tasks to run, the process is expected to set the next run time for next task iteration.

Namespace: CMS.Scheduler
Assembly: CMS.Scheduler (in CMS.Scheduler.dll) Version: 12.0.0
Syntax
C#
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: InfoDataSetTaskInfo
Dataset with information about scheduled tasks
Remarks
Only certain small number of tasks is fetched by the method.
See Also