Choose what to automate first

DevOps, Hands On15 minutesLook onlySteps checked 19 November 2026By Cloud Hands On

In this task you'll decide which manual work to automate, and in what order.

Toil is manual, repetitive work that grows with the system and leaves nothing lasting behind: resetting the same service, copying files, cleaning up old branches, answering the same request. Automation turns it into code that's reviewed, versioned and runs the same way every time.

Automate in order of frequency times time saved times risk of doing it by hand. A five-minute job done 20 times a week beats a two-hour job done once a year. Automate the safe, well-understood steps first, and keep a person in the loop for decisions.

Example. SS Kaiser's on-call engineers spent 4 hours a week restarting a stuck queue worker. A runbook triggered by the queue-length alert now restarts it and posts what it did; on-call only hears about it if the restart doesn't help.

Before you start

You need: Nothing. Time: 15 minutes.

Where to look

  1. Ticket history
  2. On-call notes
  3. Team retro

Steps

  1. List the manual jobs from tickets and on-call notes for the last month, with how often and how long each took.
  2. Score each: frequency, minutes, and how risky a manual mistake is.
  3. Automate the top one, in a repository, with a review like any other code.
  4. Measure the time saved, then pick the next one.

Commands

# Count how often a manual job appears in closed issues this quarter
gh issue list --state closed --search "restart worker in:title closed:>2026-08-01" --json number --jq length

Watch out for

Cost
Automation costs time to build and maintain: don't automate something you'll stop doing next month.
Security
Automation runs with an identity: give it only the permissions the job needs.
Common mistakes
Automating a broken process (it just breaks faster), and automations nobody owns or monitors.

Clean up

Nothing to clean up.

Words to know

Toil
Manual, repetitive operational work that grows with the system and has no lasting value.
Runbook
A written or automated procedure for a known operational task.
Event-driven automation
Automation that starts when something happens, such as an alert or a push.

Tick off each step and track your progress in the guide.

Open this task in DevOps, Hands On

Keep going