Skip to main content
Version: 24.10

Scheduled Microservice Execution

Microservices allow actions (queries or corrections) on devices. They can be executed directly, from the Workspaces module, or scheduled through Flows, which allow conditional microservices execution.

How to schedule the execution of a microservice

  1. Click on the Flows option in the left menu of Portal.
  2. Click on + New to create a new flow. Or select an existing flow if you want to modify it.
  3. Fill in the fields. Choose whether the flow will be executed at the operating system level or at the user session level.
  4. Once the fields are filled in, click on Save.

epm1

  1. In the flow list view, select the flow you just created.
  2. Click on the Flow tab.
  3. In the panel, click on the Edit button located on the right.
  4. To add the first condition, go to the + symbol and click on Add condition. A panel with all available conditions will appear on the right side of the screen. Select Cron Match.

epm

  1. Add the condition check fields: Check every, Operator and Value, the latter in “cron” programming syntax. Note that the times are defined in Coordinated Universal Time (UTC).
  2. Click on Save at the bottom of the panel. In this example, the condition is checked every half hour and the “cron” condition is “every Monday at eight in the morning”.

There are many references available to check “cron” scheduling syntax. For example: crontab.guru

epm3

  1. Click on the + symbol located below the condition and select Add action to add the microservice to be scheduled. At this point, additional conditions can be added if needed.
  2. Select the microservice you want to schedule. In this example, “Clean Disk”. Click on the Save button in the upper right corner.

epm4

In this example, the disk cleaning microservice has been scheduled to be executed every Monday at eight in the morning.

To activate the periodic execution of this microservice on devices, it is also necessary to configure the Destination of the flow, including the report groups, devices or groups of devices where execution is required.

There is also the option to notify users about the execution of the flow. To do this, you need to enable the option and fill in the Initial text, Success text, and Error text fields.

info

For more information on Flows, please refer to their documentation.