[1] Task

Last modified by admin on 2023/07/04 14:44

A task is an execution instance of a process on one or multiple Agents. After creating a workflow (deploying a package to an agent group), the next step is to execute it with the assigned Agents. This can be done manually from the Tasks page or in a preplanned manner, from the Schedules page.

The Tasks page displays by default all the tasks that are running, and the ones placed in a pending state, regardless of whether they were started manually or through a schedule. On this page, you can also manually Create or Edit a task, Start or Stop a task, and display the logs generated by it with just a click of the button. More details can be shown in the Task Details window, to help you with troubleshooting faulted tasks. To access the Task page, you click the Task tab in the left menu. After clicking, the system shows the Task page listing all existed tasks as below:

image-20221028093344-4.png

NoColumnDescription
1Actions/ViewDepending on the status of the task, the system will allow you to perform
some actions to manage the tasks:
VIEW: to view the properties of a task and task log.
DELETE: Remove the task
CLONE: Create an identical task from the existing task
By selecting the Checkbox corresponding to each Task, the delete option will appear beside the Filter option and allow you to delete the Task from the Center.
! Selecting the Checkbox next to Action will select all Tasks in display and allow you to bulk delete selected them
2WorkflowThe name of the workflow which will be used to run the task
3VersionThe version of the Package that was published to akaBot Center.
4AgentThe Agent who the task will be executed.
5Agent GroupGrouping of Agent for deployment purposes where the Agent is located.
6StateCurrent status of the tasks. Available statuses are:
FAULTED: the tasks have encountered an error and have been stopped abruptly.
RUNNING: the task is running. You can stop or kill the task.
PENDING: the task has not been run. You can start to run it.
STOPPED: the task has been stopped.
* SUCCESSFUL: the task has been completed successfully. You can see the log to see the result.

Terminating: the task has been aborted and terminated.
7Start TimeIf a task has been started, the system will show up the start time for you to see.
8End TimeIf a task has been started and ended, the system will show up the end time for you to see.
9SourceTo indicate the source of the tasks.
Manual - the task has been created and configured from the Tasks/Schedule
pages, using the Create New/Clone button.
Agent - the task has been started in attended mode from the akaBot Agent.
Schedule –The task was initiated as a result of a trigger, which is utilized for
preplanned task execution.
10CommandThere are 4 commands user can send:
PENDING: When the task is scheduled to run but not yet run.
START: when the task is being initiated.
STOP: When the task is being stopped.
NONE: When the tasks have finished running
11ScheduleThe name of the Schedule which the task is being scheduled from. If the task is created manually, the Schedule field is empty.
12Task IDUnique ID of the execution instance of the mentioned workflow.

a. View a task

There are a few ways to view the details of the task:
From the Task page: This allows you to view all the created tasks. Click the View button on the left.

image-20221028103213-22.png

From the Workflow Details page: This allows you to view all the created tasks of a specific Workflow. Click the Workflow tab > Select the Workflow > Select the Task tab and select the task item.

image-20221028103341-23.png

From the Agent Details page: This allows you to view all the created tasks of a specific Agent. Click the Agent tab > Select the Agent > Select the Task tab at the bottom and select the task item.

image-20221028103513-24.png

From the Schedule Detail page: This allows you to view all the created tasks of a specific Schedule. Click the Schedule tab > Select the Schedule > Select the Task tab at the bottom and select the task item.

image-20221028103731-25.png

Once clicking, you will be redirected to the Detail page. Details can be viewed below:

image-20221028103810-26.png

Besides the General information which can also be found on the Listing page, the Task Details page also included special Parameters and Log Details of each task.

image-20230704144337-1.png

NoColumnDescription
1ActionAvailable actions to manage the Log of said Task. Included:
View: allows you to be redirected to the Log Detail page.
Delete: by selecting the Checkbox on each Log Item, the delete option will appear beside the Filter option and allow you to delete the Log Item.
! Selecting the Checkbox next to Action will select all Logs in display and allow you to bulk delete selected log items.
 TimestampThe exact time the action was executed at
 LevelThe severity level at which the message was logged. The following options are available: OFF, FATAL, ERROR WARNING, INFORMATION, DEBUG AND VERBOSE.
 MessageThe logged message. This can also be a message logged through the Log Message activity in Studio.

b. Search a task

akaBot Center allows you to search a task list by Free search box, Agent Name, State of Tasks

image-20221028104328-27.png

NoColumn /LabelDescriptionTypeMaximumInput Requirement
1Search boxSearch by the name of every item related to Task.Free text  
2AgentSelect the agent which is assigned to run the task you want to searchInput searchingNo limit 
3StateSelect the state of the task you want to searchInput searchingNo limit 

c. Create/Edit a Task

There are three ways tasks can be created:

- When you create a Schedule on the Schedule page or executed an Agent locally, tasks will be created automatically.

- You can also manually create a task on the Tasks page.

- Clone an existing task.

To manually create a task:
Click Create New button on the top right of the page. The System will display the form for you to create the task.

image-20221028104844-28.png

image-20221028104910-29.png

NoColumn/LabelColumn/LabelTypeMaximumIs Mandatory?Input Requirement
 WorkflowSelect the workflow for the task you want to createInput
searching
No limitYes 
 SearchEnter the name of the agent you want to searchStringNo limitNo 
 AgentDepends on the workflow that you chose, select agents you want to run the task you are creating.CheckBox,
MultipleChoice
No limitYes 
 ParametersOther parameters  No 

Alternatively, you can click the Action button and select Clone option to create an identical task. This feature allows you to rapidly perform a task from the tasks list without having to go through the whole configuration process.

This process assumes you previously initiated a task that has already attained a final state. First, select Clone after clicking the corresponding Action button at the beginning of each task.

image-20221028105120-30.png

Once you click the option, the CLONE A TASK window appears, with the task's default parameters.

image-20221028105146-31.png

Feel free to make the necessary modifications and then Save your work by clicking the Save button. The CLONE A TASK window closes, and the execution begins.

Notes: After creating or cloning, the task is automatically deployed to the Agent and runs immediately. On the Tasks page, the status of each task is presented in real-time.

d. Delete a task

To delete a task, you click the Delete button of one task in the list.

image-20221028105307-32.png

Alternatively, you can select the checkbox before each Task and the Delete button will show up next to the Filter button. Tick the Checkbox next to Action will allow users to select all displayed Tasks for bulk delete.

image-20221028105402-33.png

The System will show a message to get your confirmation. Hit Confirm to remove the task.

image-20221028105416-34.png

 

  
Navigation