Skip to content
Amila

Palahepitiya Gamage Amila · Weekly Learnings

A cutover isn't finished until the old job is off

· Palahepitiya Gamage Amila

The short answer. A cutover isn't finished when you turn the new path on. It's finished when the old job is switched off, and you've checked it stayed off. This week a new integration went live, and an old automation was still writing over the production data the new path was meant to own.

Production credentials were approved, and a customer was ready to start. Then the team found an old automation that was still running. It had been writing over the production data the new path was meant to own.

Some context. I work as a fractional CTO, so I spend my weeks inside a few startups at once. Work like this often has a cutover: you turn the new path on, and you need the old one to stop. What we learned this week is simple. If switching the old job off is not a named step, it can keep running.

Why does an old job overwrite new production data?

Because the old job is still doing the work it was built to do. It isn't doing anything unusual. It runs on the same schedule, to the same records, as it always did. The new path writes a value, and the old job writes it back.

That is what happened this week. The old automation was the previous way of doing the same job, still on, still writing. The new path couldn't keep the data while the old path was still scheduled to run.

The new path was on. The credentials were approved. A customer was ready. The part that was not on the list was switching the old job off. Because that step wasn't named, the old job kept going, and it quietly overwrote the new data.

I've written before about a different version of this, when approving work felt like finishing it. Saying yes can feel like the job is finished. Here, turning the new path on felt like the end of the cutover. It wasn't.

When is a cutover actually finished?

A cutover is finished when the old path is off, and you've checked that the new data is still the data you expect. Turning the new thing on is only half of it. If the old job can still write to the same records, the cutover is still open.

The old job is now switched off, and we've confirmed it's gone. I'm writing this about the step we missed, because that's the part worth keeping.

Next time I'll put that step on the cutover list before the new path goes live, not after we find the overwrite.

What should you write down before you switch over?

In practice that is three steps:

  • Before you switch over, write down the jobs, scripts and scheduled tasks that used to do the same work.
  • Make "switch this off" a real step in the cutover, with a person who confirms it is off.
  • The next morning, check that the old path did not run, and that the new data is still the data you expect.

Write the old jobs down first, by name, before you switch over, while you still know what they are. After the new path is live, they are easy to forget. They just keep writing.

Then give the switch-off a person. If no one is named to confirm it, the step is easy to skip. I made a similar point about promises in an old contract that nobody remembered: if a line of work has no owner, it sits there until someone finds it the hard way.

Then look again the next morning. This week's overwrite happened on the old job's usual schedule. If you only check at the moment you go live, you can miss a job that runs later. The check itself is simple. Did the old path run? Is the data the new path wrote still there?

How do you check that the old job stayed off?

The next morning, check that the old path did not run, and that the new data is still the data you expect. A check only at the moment of cutover can miss a job that runs on a later schedule.

You don't need a special name for this. You need it on the list, with a person attached, and a look the next day to see whether it held.

A cutover has two sides. Turning the new thing on is only half of it. The work isn't done until the old thing is off, and you've checked.

Questions this note answers

When is a cutover finished?

When the old job is off, and you've checked it stayed off. Turning the new path on is only half the work. If the old job can still write to the same records, the cutover is still open.

Why would an old automation overwrite new production data?

Because it is still doing what it was built to do, on its usual schedule, to the same records. In the case this week, the new path wrote a value and the old job wrote it back. It wasn't doing anything unusual.

What should be a named step in a cutover, and who owns it?

Switching off the jobs, scripts and scheduled tasks that used to do the same work. Give that step a person who confirms the old path is off, and check the next morning that it did not run and that the new data is still what you expect.

Has the old job in this week's case been switched off?

Yes. It has now been removed, and we confirmed it is off.