Link Search Menu Expand Document

Task Scheduler Options

Aug 15 2023 at 12:00 AM

Task Scheduler Options are used to control the Schedule Manager. The Schedule Manager is available via DI and is usually injected into a class instance via the constructor. The class instance can be used to add or remove actions from the schedule. This class will also manage the execution of the scheduled actions.

File./Data/Config/TaskSchedulerOptions.json
NuGet PackagesIoTnxt.Raptor.TaskScheduler
Program.cs Stubs.AddTaskScheduler()
Required ByAll Device Services

This is used to control the Task Scheduler.

{
  "TaskSchedulerOptions": {
    "NumConcurrentTasks": 100,
    "DefaultActionDelay": 300000,
    "LogDebug": false
  }
}
PropertyDescription
NumConcurrentTasksThe number of actions that can run simultaneously.
DefaultActionDelaySets the default delay, in milliseconds, between executions of a scheduled action.
This will be used if the scheduled action does not override this value.
LogDebugIf debug logging should be called.
Helpful to disable mass-logging when only certain component needs to be logged for debugging.