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

Adds task queue priority #2350

Merged
merged 4 commits into from
Nov 11, 2024
Merged
Changes from all commits
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
16 changes: 14 additions & 2 deletions src/pages/docs/tasks/prioritize-tasks.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: src/layouts/Default.astro
pubDate: 2023-10-20
modDate: 2024-09-12
modDate: 2024-11-11
title: Prioritize Tasks
description: Tasks can be manually prioritized to run before other earlier queued tasks.
---
Expand All @@ -10,10 +10,22 @@ Tasks are run sequentially based on the time they are queued to start. If you ha

Prioritizing Tasks can be done either on the **Tasks** page or when viewing an individual Task. On the **Tasks** page, select the overflow menu (`...`) on a queued task and click **Move to Top**. If you are viewing an individual Task, click the **Move to Top** button. Once an executing Task has completed, the prioritized Task will immediately start executing before any other Tasks in the queue.

The **Move to Top** button prioritizes the selected task above all others. This ensures that urgent tasks, such as hotfixes, can be addressed immediately.

:::div{.warning}
Ensure any other queued deployments to the same environment are cancelled when prioritizing a deployment, otherwise an unexpected version of a release may overwrite the prioritized deployment.
:::

## Task queue priority

In Octopus **2024.4** we have redesigned the task system. Tasks are processed based on their priority, in this order:

- Queued tasks that are moved to the top
- Tasks created from a prioritized deployment or runbook
- Regular tasks

Within each category, tasks are handled on a first in, first out basis.

## Lifecycle phases

To mark a phase within a lifecycle as a priority, see [lifecycle phases with priority](/docs/releases/lifecycles#phases-with-priority) for more information.
Octopus **2024.4** adds a feature to mark a phase within a lifecycle as a priority. See [lifecycle phases with priority](/docs/releases/lifecycles#phases-with-priority) for more information.
Loading