Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
September 24, 2021 12:01 am GMT

Change Job Queue Priority in Azure Pipelines

Have you ever had a bugfix which you needed to deploy right this minute but had to wait behind other CI and PR jobs?

Today I'm going to show you how to bump the priority of a queued job so it could be executed as soon as possible.

Video

As usual, if you are a visual learner, or simply prefer to watch and listen instead of reading, here you have the video with the whole explanation and demo, which to be fair is much more complete than this post.

Link to the video: https://youtu.be/hJsMq35KAMk

If you rather prefer reading, well... let's just continue :)

Let's Do It

So, how can we decide what job will run next in our Azure Pipelines?

Let's say you have a bunch of jobs and Pipelines run in the queue

Queued Runs

They will each have their own spot in the queue, depending on how many agents you have, the degree of parallelism, etc.

To run a job next, aka make it jump the queue, just click on one of the queued items, then on the __Job_ you want to run.

Job Details

In the Job Detail Page you'll see its status in the queue (8th, in the image above) and you'll have a Run Next button.

Click on it, and magically:

Job Bumped

That job has been bumped 1st in the queue (and the Run Next button has disappeared).

You need to have the "Manage" permission on the pool, and this typically means pool administrators, to be able to see the new "Run next" button on the job details page.

Conclusions

Easy right? And super effective too.

This works with both the YAML Pipelines and the Classic Pipelines. Of course you'll still need available parallelism and a suitable agent to be able to run that job next.

What do you think of this feature? As I've mentioned before I think it is pretty useful if you need to have something "jumping the queue". Let me know in the comment section below what your thoughts are.

Also, checkout this video where I talk about how to avoid the most common DevOps mistakes.

Like, share and follow me for more content:

YouTube
Buy me a coffee
Patreon
Newsletter
CoderDave.io Website
Merch
Facebook page
GitHub
Twitter
LinkedIn
Podcast

Buy Me A Coffee


Original Link: https://dev.to/n3wt0n/change-job-queue-priority-in-azure-pipelines-42oo

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To