---
title: "Scheduler Administration"
canonical: "https://kb.myframeworks.com.au/space/FRAM/28405088/Scheduler%20Administration"
format: markdown
---
# Overview

The **Task Scheduler** allows you to manage background processes and tasks. Upon the start-up of the Task Scheduler, the system tasks that all Frameworks sites require are automatically created. The Startup Log shows details of the startup process including the Automated Tasks that have been started. For example, the Notifications Queue purge process.

The **Task Scheduler** works in the background keeping track of tasks & making sure all tasks are executing. The Task Scheduler works closely with [Sales Orders Required Delivery Date Past ](https://sterlandsupport.atlassian.net/wiki/spaces/FRAM/pages/28405282) & [Event Notifications](https://sterlandsupport.atlassian.net/wiki/spaces/FRAM/pages/28386126). The Task Scheduler must be active to ensure the notification tasks including DeTrack & GetSwift are executed. If notifications have failed, refer to FAQ:  [How do I check for failed notifications and what do I do if notification/s have failed?](https://sterlandsupport.atlassian.net/wiki/spaces/FRAM/pages/28405170)

<details>
<summary>For more information about the Task Scheduler, click here</summary>

- The start-up and monitoring of the Task Scheduler is self-managed to minimise system administration.
- The start-up of the Task Scheduler occurs at the same time as the start up of the Frameworks OpenEdge AppServer (controlled via the system startup scripts).
- Each time a user logs in to Frameworks, a check is performed to confirm if the Task Scheduler is running. If it is not running, it is restarted. If it cannot be restarted, an error/warning report will be provided (*example *below) to the user upon logging on. If an error/warning report appears, please contact your System Administrator.

![image](media://2c837f5e-549e-4ddd-b70d-6ac869fbc424)

- If required, the Task Scheduler can be disabled via the **Halt** button so that it does not automatically restart. If the Task Scheduler is not running, then any user submitting a task to be executed will be warned that the Task Scheduler is not running (*example *below).

![image](media://06b57594-264d-40d8-89b3-c02792dc9d47)

- The Frameworks Task Scheduler is the similar to the Prostix Job Scheduler.
</details>

<details>
<summary>For more information about the Tasks, click here. </summary>

- A Task is any long running activity or operation that needs to be performed in the background that cannot be performed as part of a normal Frameworks application request.
- All logging and output from the task is logged against the task and can be viewed via the [tsq](#) activity in Frameworks.
- Tasks are able to be scheduled to be run now, once off (at a set date and time), repeatedly at a specified interval (For example, daily, weekly, fortnightly, monthly) etc. Refer to [Scheduled Task - Scheduling and Output ](https://sterlandsupport.atlassian.net/wiki/spaces/FRAM/pages/28402256) for further information.
- Common tasks include:
  - A report
  - A transaction posting
  - A background scheduled process
  - Typical “end of day” type activities that need to automatically run overnight
- A task that has been scheduled to run in the future can be deleted if it hasn't been started.
- A task that has already been completed can be deleted. Old tasks will be deleted by a data purge and archive on a daily basis.
</details>

# > Macro (anchor)

Activity Task Scheduler Control

The **Activity Task Scheduler Control **panel is a view into the configuration details and the startup log when the Frameworks system was started. It show the status and allows you to stop or halt the Task Scheduler. For example, to conduct maintenance activities.

> ⚠️ Only the System Administrators should have access to the Activity Task Scheduler Control panel.

> ℹ️ System Admins, If you need to see any further error details, Refer to the log file. It’s location is displayed at the bottom of the Startup Log.
> ℹ️ 
> ℹ️ ![image-20251023-032933.png](media://058f040b-b9ce-4878-87fb-cf4439bcb89f)

## Accessing the Activity Task Scheduler Control

To access the Activity Task Scheduler Control, perform the following:

1. Click the **Frameworks Menu** then navigate to **System Administration > Admin Console **from the navigation tree.
2. From the Admin Consoles **Options,** select  **Activity Task Scheduler Control**

![image-20251023-032821.png](media://84dd60a1-5d58-48f4-96b5-f8942a65888c)

## Halting the Task Scheduler

If you halt the Task Scheduler to do some maintenance, upon anyone re- logging into Frameworks, the scheduler is stopped and will NOT automatically restarted when someone logs in. You need to click **Free Scheduler** to allow it to automatically restart.

To halt the Task Scheduler, perform the following:

1. Click the **Frameworks Menu** then navigate to **System Administration > Admin Console **from the navigation tree.
2. From the Admin Consoles **Options,** select  **Activity Task Scheduler Control**
3. Click **Halt Scheduler**.

## To free the Task Scheduler

To allow the Task Scheduler to automatically restart after Halting it, perform the following:

1. Click the **Frameworks Menu** then navigate to **System Administration > Admin Console **from the navigation tree.
2. From the Admin Consoles **Options,** select  **Activity Task Scheduler Control**
3. Click **Free Scheduler**.

### <span style="color: #003366">Stopping the Task Scheduler</span>

> ℹ️ **Note:** If you stop the Task Scheduler, upon anyone re- logging into Frameworks, the Task Scheduler is automatically re

To stop the Task Scheduler, perform the following:

1. Click the **Frameworks Menu** then navigate to **System Administration > Admin Console **from the navigation tree.
2. From the Admin Consoles **Options,** select  **Activity Task Scheduler Control**
3. Click **Stop Scheduler**.
4. After approximately 30 seconds or less, a status of Stopped is displayed.

![image-20251023-033651.png](media://b171445d-1782-431a-960e-cb7ed0ce3810)

## Starting the Task Scheduler

To restart the Task Scheduler after Stopping it, perform the following:

1. Click the **Frameworks Menu** then navigate to **System Administration > Admin Console **from the navigation tree.
2. From the Admin Consoles **Options,** select  **Activity Task Scheduler Control**
3. Click **Start Scheduler**.
4. After a second or two, a status of Running is displayed.

![image-20251023-033625.png](media://25e23e3e-3674-4b99-94ae-a5cc0356df31)

## Checking the status of the Task Scheduler

<span style="color: #333333">The</span>**<span style="color: #333333"> Check Status</span>**<span style="color: #333333"> button refreshes the screen (after a Stop or Halt) & re-queries the Task Scheduler to confirm the Task Scheduler is still running & no error messages appear on the screen. </span>  
  
To check the status of the Task Scheduler, perform the following:

1. Click the **Frameworks Menu** then navigate to **System Administration > Admin Console **from the navigation tree.
2. From the Admin Consoles **Options,** select  **Activity Task Scheduler Control**
3. Click **Check Status**.

---

# Activity Task Scheduler Data Purge & Archive

The **Activity Task Scheduler Data Purge & Archive **purges or archives old or no longer needed tasks. A System Administrator can run data purges and archives at any time. By default, only tasks that have been completed will be archived or purged, not any tasks that are still to be run. 30 days of data are automatically retained.

To access the Activity Task Scheduler Data Purge & Archive, perform the following:

1. Click the **Frameworks Menu** then enter **Activity Task Scheduler Data Purge & Archive** (or select **Activity Task Scheduler Data Purge & Archive** from the **System Administration **then** Task Scheduler **navigation tree).

![image](media://f50177c7-38c6-44b4-9f7f-e386b2ac369c)

- The** Report Criteria tab **is used to capture the criteria for the task that needs to be performed, specific to the purge or archive activity. It contains the information needed to run the task.
- The **Schedule** tab is used to schedule the task to run at a given time. By default it runs now. Refer to [Scheduled Task - Scheduling and Output ](https://sterlandsupport.atlassian.net/wiki/spaces/FRAM/pages/28402256) for further information.
- The **Output** tab is used to view the results of the completed task (dependent on how you schedule it).

## Purging Tasks

<span style="color: #333333">When Tasks are purged, the Activity Task data is deleted from the database and the report files are deleted from disk. These tasks are also archived.</span>

To purge tasks, perform the following:

1. Click the **Frameworks Menu**  then enter **Activity Task Scheduler Data Purge & Archive** (or select **Activity Task Scheduler Data Purge & Archive** from the **System Administration **then** Task Scheduler **navigation tree).
2. Enable the **Purge** checkbox.
3. *If applicable*, Enable the **Include Scheduled Tasks **checkbox** **to purge tasks that have not yet run.
4. *If you would like to purge selected tasks*, enter the task name or wildcard into the **Name Filter** field.

![image](media://01ee9d73-2a99-4428-8481-8aa63624c022)

5. *If applicable,* type the date to purge all tasks (up to and including the date specified) into the** Cut off Date **field or use the **Date Picker** icon to search.

![image](media://949f02ab-7cdf-43d4-bac8-225f3bbf6b0d)



<details>
<summary>For more information about the Cut Off date field & repeated schedules, click here. </summary>

Rather than using set dates, you can choose to purge data at various points via Date variables.

Common Date variables you may choose to purge data from include:

| **Cut Off Date Variable** | **Description** |
| --- | --- |
| @NOW = | Purge the task at the exact date & time at the point of execution. |
| @TODAY = | Purge the task at the exact date at the point of execution. |
| @TODAY-days = | Purge the task at the exact date at the point of execution minus the number of days. For example, @TODAY-30 |
| @SOM = | Purge the task at the start of month. |
| @EOM = | Purge the task at the end of the current month (eg: to schedule a trial balance to run every day, you would use @SOM and @EOM |

*As an example*, to schedule a trial balance to run every day, you would use @SOM and @EOM.

> ⚠️ Should you receive a red warning error "*Invalid Date Value*" in the Cut Off field, please ignore it.

> ℹ️ A future development will include other fields to run GL reports (similar to the Cut Off field).
</details>

6. *<span style="color: #333333">If applicable</span>*<span style="color: #333333">, click the </span>**<span style="color: #333333">Schedule</span>**<span style="color: #333333"> tab </span>to schedule the task to run at a given time. By default it runs now. Refer to [Scheduled Task - Scheduling and Output ](https://sterlandsupport.atlassian.net/wiki/spaces/FRAM/pages/28402256) for further information.
7. <span style="color: #333333">Click</span><span style="color: #003366"> </span>**Submit**<span style="color: #003366">.</span>
8. <span style="color: #333333">A message is displayed. Click </span>**<span style="color: #333333">OK</span>**<span style="color: #333333">.</span>

![image](media://b1d9732b-03a0-47f5-98de-eda3d3c06c52)

<span style="color: #333333">9. If run now, the </span>**<span style="color: #333333">Output</span>**<span style="color: #333333"> tab displays the results of the completed task. If run later, the </span>[<span style="color: #333333">tsq</span>](https://sterlandsupport.atlassian.net/wiki/spaces/FRAM/pages/28405088/Scheduler+Administration#tsq)<span style="color: #333333"> contains the output.</span>

![image](media://d7db4ec8-493e-4271-8e9e-f6019e5e288b)

####   


## Archiving Tasks

When Tasks are archived, the Activity Task data is extracted and archived and a report is provided of the archived data.

To archive tasks, perform the following:

1. Click the **Frameworks Menu** then enter **Activity Task Scheduler Data Purge & Archive** (or select **Activity Task Scheduler Data Purge & Archive** from the **System Administration **then** Task Scheduler **navigation tree).
2. Enable the **Archive** checkbox.
3. *If applicable*, enable the **Include Scheduled Tasks **to archive tasks that have not yet run.
4. *If you would like to archive selected tasks*, type the task name or wildcard into the **Name Filter** field.

![image](media://01ee9d73-2a99-4428-8481-8aa63624c022)

5. *If applicable,* Type the date to archive all tasks (up to and including the date specififed) into the** Cut off Date **field or use the **Date Picker** icon to search. > Macro (anchor)

<details>
<summary>For more information about the Cut Off date field & repeated schedules, click here. </summary>

Rather than using set dates, you can choose to purge data at various points via Date variables.

Common Date variables you may choose to purge data from include:

| **Cut Off Date Variable** | **Description** |
| --- | --- |
| @NOW = | Purge the task at the exact date & time at the point of execution. |
| @TODAY = | Purge the task at the exact date at the point of execution. |
| @TODAY-days = | Purge the task at the exact date at the point of execution minus the number of days. For example, @TODAY-30 |
| @SOM = | Purge the task at the start of month. |
| @EOM = | Purge the task at the end of the current month (eg: to schedule a trial balance to run every day, you would use @SOM and @EOM. |

*As an example*, to schedule a trial balance to run every day, you would use @SOM and @EOM.

> ⚠️ Should you receive a red warning error "*Invalid Date Value*" in the Cut Off field, please ignore it.

> ℹ️ 4/10/2018  A future development will include other fields to run GL reports (similar to the Cut Off field).
</details>

6. *<span style="color: #333333">If applicable</span>*<span style="color: #333333">, click the </span>**<span style="color: #333333">Schedule</span>**<span style="color: #333333"> tab </span>to schedule the task to run at a given time. By default it runs now. Refer to [Scheduled Task - Scheduling and Output ](https://sterlandsupport.atlassian.net/wiki/spaces/FRAM/pages/28402256) for further information.
7. Click<span style="color: #003366"> </span>**Submit**<span style="color: #003366">.</span>
8. A message is displayed. Click **OK**.
9. If run now, the **Output** tab displays the results of the completed task. If you ran the task immediately, you can click on the reports generated.  If run later, the [tsq](https://sterlandsupport.atlassian.net/wiki/spaces/FRAM/pages/28405088/Scheduler+Administration#tsq) contains the ouput.

![image](media://193bd5bc-47e9-40b6-99ed-0a4db07309f7)

# Removing Automated Tasks

If a System Administrator would like to remove any Automated Tasks from Frameworks that are automatically started at a certain date & time, delete them, then create a new schedule with the task/s to run at a time of your choosing.

> ⚠️ The Automated Tasks must be in the system. If they are not there, the system will recreate them to run at the time scheduled. The Auto Task in the Startup Log details when the tasks are scheduled to run by default.

![image](media://e29b5799-592d-42f3-83f8-14afc2dddf47)