Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add version statuses #8493

Merged
merged 2 commits into from
Nov 22, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 51 additions & 7 deletions docs/Reference/Task-Statuses.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Task Statuses
# TStatuses

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a typo

This document provides an overview of the various task statuses used in our
This document provides an overview of the various statuses used in our
system, along with their meanings, usage contexts, and the logic that determines
these statuses.

Expand All @@ -20,6 +20,7 @@ these statuses.
- [Status Determination Logic](#status-determination-logic)
- [Display Statuses](#display-statuses)
- [Task Icon Reference](#task-icon-reference)
- [Version Statuses](#version-statuses)
- [Notes](#notes)

---
Expand All @@ -29,7 +30,7 @@ these statuses.
These statuses indicate tasks that are currently in progress or scheduled to
run.

### `undispatched`
#### `undispatched`

**Description**: Indicates one of the following:

Expand All @@ -42,7 +43,7 @@ run.

---

### `dispatched`
#### `dispatched`

**Description**: An [agent](./Glossary.md) has received the task, but the agent
has not yet notified the system that it's running the task.
Expand All @@ -52,7 +53,7 @@ execution.

---

### `started`
#### `started`

**Description**: The task is currently running on an agent.

Expand All @@ -64,7 +65,7 @@ execution.

These statuses indicate that a task has completed its execution.

### `success`
#### `success`

**Description**: The task has finished successfully without any errors.

Expand All @@ -75,7 +76,7 @@ These statuses indicate that a task has completed its execution.

---

### `failed`
#### `failed`

**Description**: The task has finished but encountered failures. This status
covers any failure reason, which can be detailed in the task's end details.
Expand Down Expand Up @@ -299,6 +300,49 @@ are the icons used for each task status:

## ![Task Status Legend](../images/task_status_icon_legend.png)

### Version Statuses

Version statuses are very similar to task statuses, and are listed below for additional clarity.


#### `created`

**Description**: Indicates one of the following:

1. **Not Scheduled to Run**: The version is not activated
(`version.activated == false`), i.e. no tasks are scheduled.
2. **Scheduled to Run**: The version is activated (`version.activated == true`) but
tasks have not yet been dispatched to an agent.

This is similar to the `undispatched/dispatched` statuses for tasks.

**Usage**: Reflects version that has been created but has run no tasks, regardless of whether they're scheduled to run.

---

#### `started`

**Description**: The version has tasks that are currently running on an agent.

**Usage**: Indicates active execution of version tasks.

---

#### `success`

**Description**: All scheduled version tasks have completed successfully.

**Usage**: Denotes version that have met all requirements and passed all tests for scheduled tasks.

---

#### `failed`

**Description**: The version has finished but all tasks have not succeeded. This
covers any failure reason, which can be detailed in the individual task's end details.

**Usage**: General failure status for versions that did not complete successfully.

## Notes

- **Display Statuses**: Statuses like `unscheduled`, `will-run`, `blocked`, and
Expand Down
Loading