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 Packages | IoTnxt.Raptor.TaskScheduler |
| Program.cs Stubs | .AddTaskScheduler() |
| Required By | All Device Services |
This is used to control the Task Scheduler.
{
"TaskSchedulerOptions": {
"NumConcurrentTasks": 100,
"DefaultActionDelay": 300000,
"LogDebug": false
}
}
| Property | Description |
|---|---|
| NumConcurrentTasks | The number of actions that can run simultaneously. |
| DefaultActionDelay | Sets the default delay, in milliseconds, between executions of a scheduled action. This will be used if the scheduled action does not override this value. |
| LogDebug | If debug logging should be called. Helpful to disable mass-logging when only certain component needs to be logged for debugging. |
