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
- Click on the
Flows
option in the left menu of Portal. - Click on
+ New
to create a new flow. Or select an existing flow if you want to modify it. - Fill in the fields. Choose whether the flow will be executed at the operating system level or at the user session level.
- Once the fields are filled in, click on
Save
.
- In the flow list view, select the flow you just created.
- Click on the
Flow
tab. - In the panel, click on the
Edit
button located on the right. - To add the first condition, go to the
+
symbol and click onAdd condition
. A panel with all available conditions will appear on the right side of the screen. SelectCron Match
.
- Add the condition check fields:
Check every
,Operator
andValue
, the latter in “cron” programming syntax. Note that the times are defined in Coordinated Universal Time (UTC). - 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
+
symbol located below the condition and selectAdd action
to add the microservice to be scheduled. At this point, additional conditions can be added if needed. - 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 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.
For more information on Flows
, please refer to their documentation.