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:
- Click on the
Flows
option from the Portal on the left menu. - Once there, create a new flow by clicking the
+ New
button. Or by selecting an existing flow if you want to modify it. - 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
.
- Click on the
Flow
tab. - In the panel, click on the
Edit
button on the right side. - To add the first condition, click on
+ Add condition
. A floating panel will appear with all the available conditions. SelectCron Match
.
- 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
- Click on the
+
button below the condition and selectAdd action
to add the microservice to be scheduled. At this point, additional conditions can be added if needed. - 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.
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.