Scheduled Tasks

Scheduled Tasks Overview

Scheduled tasks are executed at defined intervals and can assist in automating simple tasks.

Scheduled tasks list

This list displays all scheduled tasks currently available in the Application Workspace System.

Selecting multiple table rows

  • Adjacent rows: Click on the first row, then hold down the Shift key and click on the last row in the range
  • Non-adjacent rows: Hold down the Ctrl key (or "Command" on Mac) and click on each row you want to select
  • Adjacent rows, using only the mouse: Click and hold the left mouse button on the first row, then drag the cursor up or down across the rows to highlight the desired ones

Table toolbar

To create a new scheduled task, click on the AW43_enlarge Create button; to view the details of a scheduled task or edit it, double-click its entry or select the scheduled task and click the AW43_edit.png Edit button.
AW43_start.png Start  give you the possibility to manually run the scheduled task.
AW43_views.png Views gives you control on how the table is displayed.
The default view contains all your scheduled tasks in alphabetic ascending order, and only a few columns: Name, Type, Enabled, Last run and Next run.
You can create your own personalized view of the table, by filtering the condition sets or adding/deleting columns and clicking Save as in the drop-down menu of views.png Views.

Detailed view of a scheduled task

See below the description of each screen in the detailed view of a scheduled task, and what actions you can perform in each of them. The following screens are common for all scheduled tasks. The Settings screen has specific elements for each type of scheduled task. See the corresponding scheduled task articles for more information.

Overview screen

This screen provides a few basic options to configure the scheduled task.

Server - This scheduled task is only run on the specified server. If no server is specified, any server can execute the scheduled task.
Allow task to be run on demand - If selected, the scheduled task can be started only manually by an administrator, otherwise it can only be started by a schedule.
If task is already running - Set what the system should do if a task is already running:

  • Do not start a new instance - A new task won't be started when this task is still running.
  • Run a new instance in parallel - Always start a new task, even if this task is still running.
  • Queue a new instance - Queue a new task and run it immediately after the currently running task is finished.

Notifications screen

This screen shows a list of email addresses that receive a notification after the task ran.

         

For system tasks provided by Application Workspace, the notification option will use the mail servers that are defined in the primary zone, if available.

Only send errors and task updates

  • When enabled, a mail notification will be sent only if there is something notable to report, like:
    • The task has failed to run.
    • The task has information to report.
  • When disabled, a mail notification will always be sent after the task ran, regardless of the results.

Schedule screen

This screen is used to create schedules for this task. There are four types of schedules: daily, weekly, monthly and interval.

History screen

This screen shows a list of all the times the task ran.

State - Whether or not the scheduled task was successful or if it is still in progress.
Started by - Which identity was responsible for triggering the scheduled task.
Device - Which server executed the scheduled task.

Auditing screen

View a comprehensive log of changes to this scheduled task, displaying the identity behind each modification.
This screen is available only if the auditing is enabled in the Database Event Collector. For more information, see Auditing.

Clean auditing

This task removes auditing events that are older than a specific number of days.
Clean auditing scheduled tasks can be defined at either the system or zone level:

  • System tasks apply across all zones.
  • Zone tasks apply only within their specific zone.

The system-level task has a default clean-up audit period of 30 days.
If a zone-level task is set to 15 days, both the system-level and zone-level task will run independently.
However, if a zone-level task is set to run after 45 days, the system-level task will still clean up data after 30 days, overriding the longer zone-level period.

Disabling this scheduled task will cause the auditing events table to grow uncontrollably. We therefore do not recommend disabling this task.

For more information about the Overview, Notifications, Schedule and History screens, see Scheduled tasks.

Clean content

This task removes content that isn't used anymore within the Application Workspace System.

For more information about the Overview, Notifications, Schedule and History screens, see Scheduled tasks.

Clean devices

This task removes devices that haven't been connected to the Application Workspace System for more than a specific number of days. By default, it is set 120 days.

For more information about the Overview, Notifications, Schedule and History screens, see Scheduled tasks.

Clean events

This task removes events that are older than a specific number of days. By default, it is set to 30 days.

Disabling this scheduled task will cause the events table to grow uncontrollably. We therefore do not recommend disabling this task.

For more information about the Overview, Notifications, Schedule and History screens, see Scheduled tasks.

Clean packages

This task removes packages from the recycle bin and/or package snapshots that are older than number of days.
By default, it is set to 30 days for archived packages and 7 days for archived package snapshots.

For more information about the Overview, Notifications, Schedule and History screens, see Scheduled tasks.

Clean sessions

This task removes sessions that are older than a specific number of hours. By default, it is set to 8 hours.

Disabling this scheduled task will cause the sessions table inside database to grow uncontrollable. Moreover, if sessions aren't automatically removed regularly, it could pose a security risk. We therefore do not recommend disabling this task.

For more information about the Overview, Notifications, Schedule and History screens, see Scheduled tasks.

Clean tasks

This task removes previously ran tasks that are older than a specific number of days. By default, it is set to 30 days.

Disabling this scheduled task will cause the tasks table inside database to grow uncontrollable. We therefore do not recommend disabling this task.

For more information about the Overview, Notifications, Schedule and History screens, see Scheduled tasks.

Install server update

This task automatically updates all Application Workspace Satellite Servers within your zone. Thus, you no longer need to manually start the update process for each satellite server.

Type - The type of the update process

  • Quality - the satellite servers get the latest bug fixes release
  • Feature and quality - the satellite servers get the latest feature release

Put servers in maintenance - the satellite servers become temporarily unavailable for the amount of seconds set.

For more information about the Overview, Notifications, Schedule and History screens, see Scheduled tasks.

Process Insights

This task optimizes the statistics database, by keeping only the most important details in the case of old statistics, in order to reduce their size inside database.

Disabling this scheduled task will cause the statistics table inside database to grow uncontrollable. We therefore do not recommend disabling this task.

For more information about the Overview, Notifications, Schedule and History screens, see Scheduled tasks.

Refresh zone licenses

This task refreshes zone licenses and you get notified when a license is updated or requires an upcoming renewal. Updated licenses will automatically be installed.

During the refresh of zone licenses, an updated report is also generated and is accessible in Manage > System > Licensing. To learn more about this report, see Licensing.

For more information about the Overview, Notifications, Schedule and History screens, see Scheduled tasks.

Synchronize connector

This task synchronizes a specific connector. You can choose to periodically check for updates or retrieve updates from the connector and apply them to a specific stage within your Application Workspace System.

For more information about the Overview, Notifications, Schedule and History screens, see Scheduled tasks.

Further reading

Update a managed package from Application Workspace Setup Store
Receive email notifications for Application Workspace Setup Store managed package updates

System updates

This task refreshes the configured update channel, and you get notified when a new update is available. It's also possible to configure automatic installation of quality and feature updates.

For more information about the Overview, Notifications, Schedule and History screens, see Scheduled tasks.

Update package statistics

This task updates statistics of all global packages, excluding applications created by the end-user as personal or shared apps (via Teams feature). Package statistics such as Trending and Popular score are calculated by this scheduled task based on statistical data stored within the Insights database table.

We do not recommend disabling this scheduled task, as this will cause the Popular and Trending feature to be non-functional within the User Catalog.

For more information about the Overview, Notifications, Schedule and History screens, see Scheduled tasks.

Wake device collection

This task wakes all devices that are members of a specific device collection.

For more information about the Overview, Notifications, Schedule and History screens, see Scheduled tasks.