Skip to content

Fire Drill

You'll run a job other people read for a season, make it safe to re-run and restart, and hand a friend the runbook to recover it from a failure you staged.

About

Thirty Nights showed you can keep one job alive. This badge is what happens when the job matters to someone else and you aren't there. Over a season the world will send you an expired token, a full disk, a reboot after an update or an API that changed its shape, and the badge is that the job shrugs off most of that on its own, you hear about the rest within the hour, and someone who isn't you can bring it back from a one-page runbook. Keep the lock, the alert and the dead man's switch from Thirty Nights. What's new is idempotency, retries, a runbook, and the drill where you stage a failure and keep your hands in your pockets while a friend fixes it.

At a glance

Per requirement
50 XP
Completion bonus
600 XP
Requirements
6
Takes
A season
Skill level
Advanced (years of practice)
Cost
Free
Supplies
Nothing special
Where
At home
Other people
With other people
Locked for now
Earn two more Rare badges in Automation & Scripts to open this one. Log in to see how far along you are.

Requirements

  1. 1
    Pick a job whose output someone else reads, and write a one-page runbook before you start. A nightly backup your household relies on, a weekly export the club treasurer opens, or a report your team gets on Monday all count. The runbook covers what the job does, where it runs, where the logs are, how to run it by hand, how to stop it, and who to tell when it's broken. Take a photo of the runbook, and name the person who reads the output. Photo
  2. 2
    Make the job idempotent, so running it twice in a row changes nothing the second time. Run it, then run it again by hand straight away. Nothing should be duplicated and nothing deleted, which usually means checking what's already done before doing it. Take a screenshot of the second run's log saying it had nothing to do. Photo
  3. 3
    Add a retry with backoff so one flaky network call doesn't fail the whole night. Try three times, waiting longer each time, say 10, 60 and 300 seconds, then give up and send the alert. Point the job at a dead host or pull the network cable mid-run and look for the retry lines. Take a screenshot of the log showing the waits and the recovery. Photo
  4. 4
    Survive a reboot of the host without touching anything. Reboot the machine, and the next scheduled run should happen on time with nothing started by hand. A job that needs you after every update isn't unattended. Take a screenshot of the log entries on either side of the reboot. Photo
  5. 5
    Stage a failure and have someone else recover the job from your runbook alone. Expire the token, fill the disk or rename the input folder, then hand the runbook to a friend and say nothing. Sit on your hands, because every question they ask is a hole in the runbook, and fix those holes afterwards. Film the recovery, including the part where they get stuck, and list what you changed in the runbook. Video
  6. 6
    Handle one real failure during the season, and ask the reader whether they noticed. Note the alert time, the fix time and the root cause in a sentence. Then ask the person who reads the output whether anything looked wrong on their side, and write down what they said. If nothing broke all season you got lucky, so run a second drill with a different failure and write that one up instead. Take a photo of the incident note. Photo