Creating a Scheduled Task
KnowledgeKube lets you create Schedules to automate your application. Each schedule instructs a single Action to run at a specific time interval through the Scheduler.
Creating schedules will have no effect if your KnowledgeKube repository does not have the Scheduler Service enabled. If you are unsure how to do this, please contact Mercato Solutions.
Implementation:
- Click to open the Schedule Manager dialog.
- Click New Schedule.
- Give the schedule a suitable Schedule Name and Description.
- Enter a Start Date for your schedule.
- Enter a Start Time for your schedule.
If the Start Date is in the past, or is today's date and the Start Time has passed, the scheduled action will trigger as soon as the schedule is initialised. Otherwise, it will not occur until the specified date and time.
- Use the Frequency drop-down menu to select how often you want the scheduled action to run. The scheduler will attempt to run the action at the specified interval, beginning at the start time as described in the note above.
The scheduler, like many comparable systems, is powered by Microsoft Windows. What this means is that although the service will attempt to trigger the specified action at the time interval you requested, there may be times when a heavy system load will cause the action to be deferred until later. When this deferred time is reached, the action will run again; each subsequent time it runs, it will do so at the specified interval after the deferred time. Because of this, you should not use the scheduler to run business-critical tasks - use a web service instead.
- Use the Schedule Duration radio buttons to select when you want the schedule to run.
- (Optional) Enter an End Date. This must be in the future, or the schedule will never run. The schedule will cease operations at midnight on this end date.
- (Optional) Use the Maximum Runs field to specify the maximum number of times you want the schedule to run. If the scheduled period elapses before this number is reached, this setting will have no effect.
- Switch to the Properties tab.
- Use the Model Reference drop-down menu to select the model containing the action you want to run.
- Use the Action Name drop-down menu to specify the keyword of the action you want to schedule.
- Click Create.
You can now test the scheduled task to make sure it is working as expected.