Skip to main content

Tasks

Cenit uses the "Task" concept to refer particular processes which took place inside a tenant, for example the execution of an algorithm or a flow, the deletion of one or more records, the transformation of data, etc. Every execution of a flow or an algorithm implicitly generates a Task. A record deletion or a data transformation generates a Task as well.

Tasks can be manipulated via CENIT IO API V2. See the spec for this API in the section Tasks.

The Monitors/Tasks submenu allows to manage the tasks.

Tasks menu

A shortcut to the Tasks menu is the button with the task logo, in the top bar:

Task button

Cenit shows the tasks ordered by date and time in a decreasing way, that means newer first.

Task lists

In the Task list, when you click a specific type of task, a new window will be opened and a list of tasks of the same type will be shown. For example, by clicking Flow Execution:

Task list click flow

you can retrieve the list of flows executions:

Tasks flow executions

You get a similar result when you click Algorithm Execution

Tasks list click algorithm

In that case the list of algorithm executions is shown:

Tasks algorithm executions

As mentioned in the System Notifications section, algorithms and flows not always generate a notification when running. So, by using the task list you can get feedback about the execution of a flow or algorithm, such as the execution date, if it succeeded or not, etc.

A flow execution task is associated with a flow. The Task contains a reference to that flow and you can easily get details about it by inspecting the task. You can do it in two ways.

In the task list you can select a task and press the button show in the Generic Menu

task show

In the next window you must click the flow name:

task details click flow

and then you get the flow details:

task flow details

It's even easier if you click the flow name linked to one task in the list of flow executions:

flow executions click flow

In case of algorithms executions you may proceed the same way.

Task scheduling​

Tasks are particularly important if we consider a task is able to be scheduled. As mentioned in the Flows section, you can associate a Sheduler Event to a flow. However, an algorithm can not be associated to a Scheduler. So, if you want to schedule an algorithm you need to execute it first in order to generate a task, then you need to schedule that task.

In the task list you can select the task to be scheduled and press the edit button:

task edit

then press the schedule button:

task scheduler 1

After selecting Scheduler or creating a new one by pressing the button +, press save:

task scheduler 2

The easy way is from the task list, select the task and press directly the button schedule:

task scheduler 3

When linking a task to a Scheduler, you should check the Scheduler to be active.

For unscheduling the task proceed the same way and remove the Scheduler:

task unschedule 1

After selecting the task and pressing the Schedule button, delete the Scheduler:

task unschedule 2

then press save:

task unschedule 3

Now you can see there is no Scheduler linked to the task. The picture also shows how many times the task was executed when it was scheduled.

task unschedule 4