Restart cancelled go agents – Go Pipeline

I was tired of SSHing into almost 20 agents a day and running the same command to restart cancelled agents due to a pipeline that was taking too long or simply because someone cancelled a job. I then decided to write a very small Ruby script that would curl the Go agents API look for cancelled agents ssh into the box and restart this particular agent.

Well that is what the script does and you can find it here. On that github page I explain how to use it which should be very straightforward.

If you have any questions please post them here. Also note that I will be improving this script but PRs are always welcome.

This is a rather simple script but it saving me a lot of time and time is very important in our field.

Cheers

ABC = Always Be Coding!

ABC