Why are we still waking people up? - A better way to handle global on-call

On-call is supposed to mean that someone is up and available. It shouldn’t mean that someone, in say Dublin, is getting paged at 2am because the person who should have handled it isn’t around.

Sometimes overnight coverage is necessary but waking someone up because a schedule doesn’t reflect their working hours is a different problem, especially if your team is spread across time zones.

How does your team handle global on-call coverage? Does it reflect where an employee is actually based or is someone manually adjusting it?

For example, let’s think about if a team in Hawaii is collaborating with a team in New Zealand. If someone in Hawaii starts their shift on Monday at 9am, nobody will be on call in New Zealand until the next day (Tuesday at 8am).

Shay Pletcher (Staff Software Engineer at Tines) has built a time-zone-aware daytime on-call rotation for PagerDuty to address this very problem. It gives team leads a way to build and sync schedules while also taking local working hours into account when deciding who should be paged.

“We were previously running a workflow that edited people’s shifts underneath their feet on the same day the shift started. Any time it broke, there was a risk of waking someone up at 4am with no warning.” - Shay

A simple idea with plenty of edge cases

For me, this is a great example of the kind of problem that can look fairly simple until you start digging in and thinking through all the details.

“Make sure the right person is on call only during their working day.”

Now let’s ask ourselves all these questions:

  • What time zone is each person in?
  • How do you keep the rotation consistent?
  • What happens when daylight savings time changes?
  • How do we add a new on-call engineer without disrupting the existing plan?
  • Who keeps this schedule up to date in PagerDuty?
  • What if someone messes up and doesn’t line up an override with the right time zone?
  • What if someone needs to trade shifts? Do they have different working hours from the person taking their shift?

Individually they all sound manageable right? But together, this is an ongoing dance of someone remembering what needs to be changed and when.

“A rotation where people are on call in their local working hours” is nearly impossible to build cleanly for all possible combos of time zone - no on-call product on the market supports it. We only needed to support a five-hour difference. Tines 3B built it in twenty minutes." - Shay

Less coordination, not less human involvement

What I like about this approach is that it uses automation to deal with that complexity in the background without having to ask the team to manually keep track of who should be on call at any given moment in time, but the team still makes the decisions. The goal here isn’t to remove people from the process, it is to make sure the right people are involved at the right time.

You can check out Shay’s workflow here and you can even import it to see the demo and play around.

So, tell us, what would you automate?

A few ideas:

  • On-call scheduling
  • Incident routing
  • Access requests
  • Employee onboarding
  • Something completely different that takes too much coordination
8 Likes

This is brilliant! Wow!!

2 Likes

Ooh great minds think alike! :sweat_smile: I just made a video on this workflow to explain how it works and the way it’s built.

2 Likes

This is cool. Have had more than my fair share of headaches trying to manage on call duty.. This is a nice improvement with 3B.

1 Like