Here, you will find a list of tasks that are performed at defined intervals. The interval is defined using a ‘Crontab’.

The tasks are divided into different categories or tabs as follows:

  • CM-Device tasks: These tasks will be created per device, e. g. in oder to import data.

  • Report tasks: These tasks will be created for each configured and enabled report and they control the report generation.

  • System tasks: These tasks are supplied for the general system.

CM-Devices

Name

Description

Interval

CMU Task {CMU name} {CMU ID} {CMU IP address}

Downloads the XML and DAT files from the CMU + diagnostics

Default: Every minute

MicroCMU Task {Application name} {microCMU ID} @ {microCMU IP address}

Queries the trend data via REST API and saves it to the database

Default: Every minute

Report tasks:

Name

Description

Interval

Report task: {report name}

Execution of the configured report (report must be enabled)

Default: Daily at midnight

System tasks:

Name

Description

Interval

Update Check

Checks whether new software versions are available. Only functions if there is an active Internet connection.

Default: Daily at 6:00 AM

Send log notifications

Sends the log notifications that the user has set under Profile > Log notification.

Default: Daily at 6:00 AM

Refresh Plant Tree Status

Recalculates the plant tree status for all items.

Default: Every hour

Notification Worker

Checks whether an interval for a status violation notification has been reached. If so, a notification is sent.

Default: Every 10min

Deadman Worker

Checks whether a trend has Deadman status. If so, it is set to Deadman status.

Default: Every minute

Clean Up Server

Performs the clean up for CMUs (DAT and XML file archive), hard disk memory, and database.

Default: Daily at 2:00 AM

Clean Up Plant Tree Status Trends

Deletes status trends no longer required from the plant tree. This should be performed manually after migration.

To be performed manually

Check application folders

Checks access to the archive folder and sets the status in the diagnostics.

Default: Every minute

Adjusting the schedule for the tasks

You can adjust the default schedule (trigger mode) set for the tasks in different areas.

  • System tasks: Edit the file appsettings.json on the application server. The tasks are listed under the TaskScheduler node. Each task contains a Schedule property, which can be adjusted. The schedule is specified in Cron format, which is explained below.

  • CM-Devices: Setup is part of the CMU configuration, General tab - Import task interval. You can choose out of pre-configured intervals.

  • Report task: Setup is part of the configuration dialog of each report under System settings – Reporting tab – Reports tab. You can choose out of pre-configured intervals.

Crontab

Crontab is a method of specifying intervals, which is widely used in programming. A Crontab has five adjustable values.

  1. Minutes (0 - 59)

  2. Hours (0 - 23)

  3. Day of the month (1 - 31)

  4. Month (1 - 12)

  5. Day of the week (0 - 6)

You can use these values to define intervals (e.g. */1) or specific times. You can find a useful tool for the Crontab settings undercrontab.guru.

Examples:

Minute

Hour

Day of the month

Month

Day of the week

Explanation

*

*

*

*

*

Every minute

*/5

*

*

*

*

Every 5 minutes

0

*

*

*

*

Every full hour

5

*

*

*

*

Five minutes after every full hour (10:05, 11:05)

0

0

*

*

*

Daily at midnight

45

2

*

*

0

Every Sunday at 2:45 AM