Adding a schedule to a task creates a scheduled task in the Windows Task Scheduler and that scheduled task is not deleted after running.
search cancel

Adding a schedule to a task creates a scheduled task in the Windows Task Scheduler and that scheduled task is not deleted after running.

book

Article ID: 159275

calendar_today

Updated On:

Products

Inventory Solution Task Server Software Management Solution

Issue/Introduction

Create a task that allows you to schedule it for a future time. This can be, but is not limited to, a Quick Delivery, Package Delivery, Gather Inventory or Run Script task.

Add a schedule for a future time. Do not use the "Run now" option.

Notice that this creates a scheduled task in the Windows Task Scheduler named "NS.Run <task name>".

Then notice that these tasks remain in the Task Scheduler after they have run, even though the schedule is not set to repeat.

The number of scheduled tasks in the Task Scheduler will continue to grow every time a schedule is added to a task. This can eventually cause some performance issues with the Task Scheduler

Resolution

There is a purging mechanism in place to remove these expired scheduled tasks from the Task Scheduler.

Navigate to Settings > All Settings, then Settings > Notification Server > Task Settings > Clean up Task Schedules

Configure as needed and then either use the Start Now option to run on demand when desired, or create a new, repeating, schedule.