Setting Task Priority Properties

Since AutoMateā„¢ is fully multi-threaded, it has the capability of running many tasks simultaneously. However, in some instances a task may need to run alone and uninterrupted, such as when a task needs to keep an application focused in order to send keystrokes to it.

The Priority feature in AutoMateā„¢ gives you the power to set task priorities and manage any conflicts between tasks. Prioritizing tasks involves two points: under what conditions will the task not be allowed to run, and what will be done with the task when those conditions occur.  

When a task cannot run because its priority condition is not met, the task is either ignored and never run, or placed into a queue of waiting tasks. The queue is examined each time a running task ends, and priority conditions of each queued tasks are reevaluated to see if the task can now be run.

To set task priority:

  1. From the Task Administrator window, open the Managed Task Properties dialog box by selecting the task and clicking Properties or right-click the task and select Properties from the right-click menu.

  2. Click the Priority tab. A dialog appears as shown below:

  1. Under Priority Type, select from the following:

Always Runs

The task is free to operate alongside other tasks, and runs without checking any priorities. This does not make it immune from being suspended, stopped, or queued by another task that has already begun with priorities that conflict with this task.

Limit number of simultaneous instances of this task

If you select this, enter the task-number limit in the box below. AutoMate checks whether running the current task will cause the total number of running tasks by the same name to exceed the specified value. If so, AutoMate uses the selected priority conflict action (see below).

Limit number of simultaneous tasks

If you select this, enter the task-number limit in the box below. AutoMate checks whether running the current task will cause the total number of running tasks to exceed the specified value. If so, AutoMate uses the selected priority conflict action (see below).

Run Alone

The task only runs if there are no other tasks running (this is analogous to "Limit number of simultaneous tasks" with the total allowable tasks set to 1)

  1. Under If the condition is not met, select from the following:

Hold task indefinitely

The task is placed into the "waiting tasks queue" until all other prioritized tasks have completed. Then, the task is taken from the queue and run.

Hold task then abort

If you select this, use the box below to enter the number of minutes to hold the task. The task is placed into the "waiting tasks queue" and waits for the number of minutes specified. If the time elapses before conditions change that allow the task to run, the task is removed from the queue. If a schedule triggered the task, it is rescheduled based on its scheduling properties.

Hold task then interrupt all running tasks

If you select this, use the box below to enter the number of minutes to hold the task. The task is placed into the "waiting tasks queue" and waits for the number of minutes specified. If the time elapses before the conditions change to allow the task to run, all the tasks currently running on the system are forcibly stopped, and the current task begins.

Interrupt all other running tasks

All tasks currently running are forcibly stopped and the current task runs immediately. When used in conjunction with the "Run Alone" priority condition, this gives a task ultimate running power.

Interrupt all other running instances of this task

All tasks by the same name as the current task are interrupted and the current task begins immediately.

Don't run

The task does not run. If a schedule trigger started the task, the task is rescheduled based on the trigger properties.

  1. If the option Hold task then abort or Hold task then interrupt all running tasks is selected, you can select the total amount of minutes to hold the task before other actions take place by entering the value under the Hold during parameter.

  2. Set the task's isolation level under the Task Isolation parameter. The available options are:

Note: Tasks that have been placed into the queue can be manually removed or forced to run immediately using the Running Tasks dialog. For further information, see Starting and Stopping Tasks.

See Also

Priority Properties

Editing Task Properties

About Creating Tasks

Creating a Task Using the Wizard

Creating a Task Without the Wizard