The Task Scheduler

The [email protected] and [email protected] Task Scheduler automates the periodic execution of certain Maintenance Functions.

This article provides an overview of all elements of Task Scheduler configuration and supersedes all previous articles.

Introduction

Many Maintenance functions are ones which you will want to execute periodically and the Scheduler enables you to schedule such tasks for periodic execution.

The Task Scheduler may be run from any workstation, but can also be used to create a service (uniquely named for each database), and may be released as a service. A service will automatically restart if settings are appropriate and runs in background after logoff.

(Note: If you uninstall your current version of the software and reinstall a new version you should uninstall all Task Scheduler services before attempting to use or create a new service using the new version of the software. To uninstall Task Scheduler services run: Uninstall_Services.exe from the Task Scheduler folder).

The Functions you can schedule using the Task Scheduler are as follows:

– Routing
– Posting and Validation
– Transmission Profiles
– Notification of overdue Forms

Why Does The Task Scheduler Stop?

In certain situations The Scheduler Service might stop without warning.

This can happen whenever an error occurs which would (in an application environment) cause a Windows message box to pop-up (e.g. when a connection to the SMTP server drops out).

Our programmers strive to make the Task Scheduler Service as robust as possible, however if the Task Scheduler runs as a service, the pop-up messages are suppressed and therefore you can not see them on the Desktop. It should be noted that in most cases the cause of the Service stopping is not because of an error in [email protected] or [email protected]

If your Task Scheduler stops then we recommend that you kill the Scheduler Service.exe process in Windows Task Manager and restart the Task Scheduler service. This should be your first course of action in the event of an infrequent stoppage of the service.

If the Service continues to stop then in the short term we would recommend that you run the Task Scheduler as an Application so you can monitor the reason it is stopping. This is because if Task Scheduler runs in application mode, a pop-up message will appear if there are any problems and when you respond to it (interaction is still needed), the Task Scheduler will continue.

Once you experience or identify any pop up messages then you should send screenshots to your support organisation for further advice.

Task Scheduler Problems Checklist

– Ensure that Email Transmission is NOT Ticked on the Main Tab of System Parameters.

– Ensure that Email Transmission is NOT ticked for any Open or Closed Employees.

– Ensure that All Maintenance Users have full read/write permissions to all of the Folders referenced in Systems Parameters on the Folders Tab.

– Ensure that all email addresses are valid for employees.

– Check Task Scheduler Properties for Routing to ensure that only CHECK WEB is ticked. Routing via the Task Scheduler should not be set to Check All or Check Email.

Configuring The Task Scheduler

Start the Task Scheduler from Start – Programs on the Windows Desktop.

Logon to the database using the UserID and Password you would use in Maintenance.

To schedule a new task click on the Create button.

Choose a Task Type. Enter a task name. This can be any name. For example: Hourly Routing.

Once you have chosen a Task Name and Task Type you should see the Task appear in the Task list:

You should then specify the Properties of the Task. These properties are effectively the parameters with which the task, such as Routing, should be run. These properties/parameters will differ from Task Type to Task Type. You should be familiar with these parameters from your use of Routing in Maintenance. (Note: Generally you should only select Check Web unless your staff are using offline Forms).

The parameters you select here will be stored and used whenever this task is executed.

You should then specify the frequency with which the task should be executed.

Finally click on the Start button to activate the task.

You will see that the next execution is now scheduled.

Note that you may stop the scheduled execution of a task at any time by clicking on the Stop button.

While a task is halted you may also execute it once immediately by clicking on the Execute button.

Every time a task is run a message is written to the Log file. This log may be viewed by clicking on the View Log button:
Note that error conditions encountered during the execution of a task, such as Routing, are written to the error logs associated with the task in Maintenance.

Exiting from the Scheduler will halt the execution of tasks.

When you click on Exit to leave the Task Scheduler application the system will ask you whether you want to start the service.

If you click on Yes then the service will run in the usual way.

Starting the Task Scheduler application again will suspend the service until you release it again, allowing you to modify parameters and tasks as required.

Task Scheduler As A Service Settings

There are two Task Scheduler specific services and these need to have the correct Status and Startup Type parameters set in order that the Task Scheduler will start itself after a reboot.

The correct settings are:

——————————————–
‘TAW_TaskScheduler( # )’ service
Status: ‘Started’
Startup Type: ‘Manual’
——————————————–
[email protected] TaskScheduler’ service
Status: (blank)
Startup Type: ‘Automatic’
——————————————–

These settings are in place so that the [email protected] TaskScheduler service is started with a startup of the machine and it then calls the other service.

Uninstalling The Task Scheduler Service

Task Scheduler Services should always be uninstalled when you upgrade your version of [email protected] or [email protected]

If you uninstall your current version and reinstall a new version of the software you should uninstall all Task Scheduler services before attempting to use or create a new service using the new version of the software.

To uninstall Task Scheduler services run: Uninstall_Services.exe from the Task Scheduler folder.