Reschedule Failed Tasks
- Last UpdatedJun 21, 2024
- 2 minute read
You can reschedule failed tasks using the taskscheduler service. By default, this feature is disabled. You need to manually enable this feature by modifying the farm database, as per configuration shown below:
Open the farm database and edit the SKService table.
Update the Properties field of the record corresponding to the task scheduler with the code shown below:
Select Properties from SKService where Name='SkeltaTaskScheduler2'
<properties>
<property key="loadbalanced"> <![CDATA[False]]></property>
<property key="loadbalanceserverport"><![CDATA[8853]]></property>
<property key="loadbalanceclientport"><![CDATA[8860]]></property>
<property key="port"><![CDATA[8856]]></property>
<property key="fileWatcher"><![CDATA[]]></property>
<property key="maxThreads"><![CDATA[25]]></property>
<property key="serviceexe"><![CDATA[TaskSked.NET2.exe]]></property>
<property key="displayname"><![CDATA[Skelta - Task Scheduler]]></property>
<property key="enableReScheduling"><![CDATA[true]]></property>
<property key="lastUpdatedDateTime"><![CDATA[]]></property>
<property key="retryCount"><![CDATA[]]></property>
<propertykey="noOfrecordsforreshedulingTasks"><![CDATA[]]></property>
<property key="rescheduletimeinterval"><![CDATA[]]></property>
<property key=" repositories"><![CDATA[]]></property>
</properties>
Configuration details
-
enableReScheduling : If this property key is missing or if it is set to False, the rescheduling feature is disabled. By default, this property will not be added. You need to manually add this property and set it to True to reschedule the failed tasks.
-
LastUpdatedDateTime: If this property is configured, only the failed tasks whose LastUpdatedDateTime is greater than configured are fetched for rescheduling. By default this value is null and all the failed tasks will fetched if rescheduling is enabled.
-
retryCount: This property sets the number of times that the failed tasks should be rescheduled. The default value is three.
-
noOfrecordsforreshedulingTasks: This property sets the total number of failed records to be fetched for rescheduling. The default value is 15.
-
rescheduletimeinterval: This property sets the time period for which the task scheduler service tries to fetch and reschedule the failed tasks. The default value is 10 minutes.
Note: 0.00:20:00 indicates that the interval is configured for 20 minutes. This value should always be greater than the fetch interval time.
-
repositories: This property performs rescheduling only for the specific repositories. By default, this property value is empty, and all the repositories will be considered for rescheduling if this feature is enabled.