Skip to main content
Version: 24.10

Scheduled Microservice Execution

Microservices allow actions (queries or fixes) to be performed on the devices. They can be scheduled through the Flows in Portal, which allows you to execute microservices conditionally; one of these conditions can be to check if a time-based condition is met.

To schedule the execution of a microservice:

  1. Click on the Flows option from the Portal on the left menu.
  2. Once there, create a new flow by clicking the + New button. Or by selecting an existing flow if you want to modify it.
  3. Fill in the flow fields. It is important to know if the flow will run at the operating system level or at the user session level. Once the fields are filled in, click on Save.

epm1

  1. Click on the Flow tab.
  2. In the panel, click on the Edit button on the right side.
  3. To add the first condition, click on + Add condition. A floating panel will appear with all the available conditions. Select Cron Match.

epm

  1. Add the condition check fields (how often it is checked) and the “cron” scheduling condition. 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 + button 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. In the floating panel, 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 the devices, it will also be necessary to configure the Target of the flow including the reporting groups, the devices, or device groups where the execution is required.

There is also the option to notify users of the flow execution. To do so, the option must be activated and the Initial text, Success text, and Error text fields filled in.