Overview of the Jobs tab in the ADCM UI
The Jobs tab in the ADCM web interface allows you to view additional information on the execution process and results of actions for the ADCM objects.
List of jobs
On the Jobs tab, you can see the list of jobs related to actions in tabular form which contains information described below.
| Field | Description | ||
|---|---|---|---|
№ |
Order number of the job |
||
Name |
Name of the job corresponding to the chosen action and containing a link to the job page |
||
Status |
Status of the job. Possible values:
|
||
Objects |
Name of the ADCM object that contains a link to the object page |
||
Duration |
Duration of the job execution in the |
||
Start time |
Job execution start time in the |
||
End time |
Job execution end time in the |
||
Operations |
The |
To sort the job list:
-
in ascending order of the job order numbers, click the
icon in the № column;
-
in descending order of the job order numbers, click the
icon in the № column.
To search for a job in the list:
-
by action name — enter its name in the Search job field;
-
by object name — enter its name in the Search object field.
To filter jobs by status, select the required value from the drop-down list in the field next to Status.
To reset search and filter settings, click the
icon.
Operations with a job
ADCM allows you to stop the execution of jobs related to actions.
To stop the job execution, follow these steps:
-
Open the Jobs tab.
-
On the page that opens, click the
icon in the row of the job the execution of which should be stopped.
The operation confirmation dialog box -
In the dialog box, confirm the action by clicking Stop. As a result, the job first transitions to the
revokingstatus, then to theterminatingstatus, and once termination is complete, to theabortedstatus.The dialog box displays a warning that stopping a job is intended for experienced users who are familiar with the potential risks and consequences of this action for the clusters, hosts, and services managed by ADCM.
Job details
To get detailed information about the job, click the job name in the Name column of the table located on the Jobs tab.
The job page contains:
-
Job execution structure in two view modes: Table view and Graph view.
| Field | Description |
|---|---|
Object |
Name of the ADCM object that contains a link to the object page |
Duration |
Duration of the job execution in the |
Start time |
Job execution start time in the |
Finish time |
Job execution finish time in the |
Logs |
Link to the archive that includes the following files:
|
Table view
In the Table view mode, the job execution structure is displayed as a table containing subjobs. The table fields are described below.
|
NOTE
Subjob groups are only displayed in Graph view mode.
|
| Field | Description |
|---|---|
Subjob |
Name of the subjob containing a link to the subjob page |
Status |
Subjob execution status. The list of possible values is identical to the list provided in the Fields of the Jobs tab table |
Duration |
Duration of the subjob execution in the |
Start time |
Subjob execution start time in the |
Finish time |
Subjob execution end time in the |
Operations |
Icons for managing the subjob:
|
Icon availability rules and the subjob skipping and stopping order are described in the Stop and skip subjobs and groups subsection.
Graph view
In the Graph view mode, the job execution structure is displayed as an interactive diagram.
The interactive diagram contains the following elements:
-
structure elements (subjobs and groups) — represented by separate blocks connected into a dependency tree;
-
and
icons (to the left of a group) — allow expanding and collapsing nested subjobs and groups;
-
block content — includes the execution status, element name, and duration, as well as the
and
icons;
-
control panel (on the right) — shows the current scale percentage and changes it using the following icons:
-
and
— allow zooming in and out of the diagram;
-
— allows fitting the diagram to the screen;
-
— allows resetting the scale to 100%.
-
|
NOTE
Subjobs within a group of the parallel type are executed concurrently only when jobs are run via Celery Worker. When using Local Executor, such subjobs are executed sequentially, and the In Celery Worker mode, tasks can be executed in parallel message appears above the interactive diagram. It is shown only when a job is run via Local Executor and the execution plan contains a group of the parallel type (hidden when using Celery Worker).
|
If an error occurs in one of the subjobs, unstarted subjobs that can no longer be executed transition to the revoked status. If the job is run via Local Executor, its execution stops entirely, while when run via Celery Worker, only the sequence containing the failed subjob is stopped. For details, see the description of the group property.
Stop and skip subjobs and groups
ADCM allows skipping and stopping subjobs and subjob groups. Operations for subjobs are available in both Table view and Graph view modes, while for groups, only in Graph view mode. Operations are performed using the following icons:
-
— skips an unstarted subjob or subjob group. It is available for subjobs and groups in the
createdstatus. In other cases, the icon is inactive. -
— stops a running subjob or subjob group. It is available for subjobs and groups in the
runningstatus. In other cases, the icon is inactive.
To skip or stop a subjob or subjob group, follow these steps:
-
Click the required icon in the subjob row or in the group block.
-
In the dialog box that opens, confirm the action by clicking Skip or Stop.
The dialog box displays a warning that stopping or skipping the execution of a subjob or group is intended for experienced users who are familiar with the potential risks and consequences of these actions for the clusters, hosts, and services managed by ADCM.
The table below shows how subjob and group statuses change after being skipped or stopped.
| Operation | Result |
|---|---|
Skip a subjob |
The subjob receives the |
Stop a subjob |
The subjob first receives the |
Skip a group |
All subjobs in the group and the group itself receive the |
Stop a group |
Running subjobs in the group receive the |
After stopping or skipping a subjob, job execution does not stop: subsequent subjobs start as normal. The final job status is determined according to the rules described in the Subjob group statuses subsection. For example, if a non-final subjob was stopped, but the last one completed successfully, the job receives the success status. If the last subjob was skipped, the job receives the aborted status.
|
IMPORTANT
If one or more subjobs were stopped or skipped after calling the |
Subjob group statuses
A group status is determined based on the statuses of its constituent subjobs and nested groups:
-
created— all subjobs and nested groups have thecreatedstatus. -
running— at least one subjob or nested group is running, starting, or stopping, or some subjobs have thecreatedstatus while the others are completed. -
failed— no subjob or nested group is running, and at least one subjob or nested group has failed. -
success:-
for a group of the
paralleltype — all subjobs and nested groups have thesuccessstatus; -
for a group of the
sequentialtype — the last subjob (or nested group) has completed successfully, while the others have thesuccess,aborted, orrevokedstatus.
-
-
revoked— all subjobs and nested groups have therevokedstatus. -
aborted— in all other cases.
The job status is determined by the same rules as the group status. Subjobs and groups specified in the scripts property of an action are considered a single sequence (sequential). If the user stops the entire job, it gets the aborted status.
Subjob page
To view detailed information about a specific subjob, click its name in the Subjob column of the table in the Graph view or Table view mode, or click the block of this subjob in the Graph view mode.
The page contains information about the subjob presented in tabular form as described in the table of the Table view subsection, as well as the following tabs:
-
Ansible [stdout] — the standard output (stdout) of the command to run the Ansible playbook;
-
Ansible [stderr] — error output (stderr) of the command to run the Ansible playbook;
-
Ansible [check] (optional) — log in a structured format for specific Ansible tasks.
To copy the logs, select the necessary tab, hover over the log area and click Copy at the top-right of the log area.
To download the ansible-stdout.txt, ansible-stderr.txt log files, and the <subjob identifier>-ansible.json file, select the corresponding tab and click the
icon.
The toggle in the bottom right corner of the page allows you to disable automatic scrolling to the bottom of the log while the subjob is in progress. By default, the toggle is switched on.
To expand the log window to full screen, hover over the log area and click the
icon at the top-right of the log area. To exit the full-screen mode, click the
icon.
|
NOTE
The full-screen viewing mode contains the same tabs and icons that are available in standard mode.
|
To view a comment added in the dialog box when you run an action, hover over the
icon.