---
title: "How We Oops-Proofed Infrastructure Deletion on Railway"
description: "Railway now gives deleted persistent volumes a 48-hour grace period during which deletion can be undone, built on Temporal durable workflows."
url: "https://swe.quest/articles/how-we-oops-proofed-infrastructure-deletion-on-railway-29c48b4679aeb3a6"
canonical: "https://blog.railway.com/p/how-we-oops-proofed-infrastructure-deletion-on-railway"
source: "Railway"
published: "2025-08-28"
difficulty: "medium"
kind: "Case study"
reading_minutes: 9
tags: ["scheduling","storage-systems","resilience","typescript"]
---

# How We Oops-Proofed Infrastructure Deletion on Railway

A post on [Railway](https://swe.quest/sources/railway.md), published 2025-08-28, 9 min read, Case study. Original: [https://blog.railway.com/p/how-we-oops-proofed-infrastructure-deletion-on-railway](https://blog.railway.com/p/how-we-oops-proofed-infrastructure-deletion-on-railway)

## Summary

Railway now gives deleted persistent volumes a 48-hour grace period during which deletion can be undone, built on Temporal durable workflows. Committing an environment patch starts a workflow via signalWithStart. A delayed-deletion workflow marks the volume's deletedAt, notifies admins, then waits on a condition until a cancel signal arrives or the timeout expires. If cancelled, it restores the volume. Otherwise a child workflow with a 1-hour timeout tears down each instance through the router and compute host (ZFS recursive destroy) and then tombstones or hard-deletes the database records, with non-cancellable cleanup of the state on failure.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Scheduling](https://swe.quest/tags/scheduling.md) (Distributed systems)
- [Storage systems](https://swe.quest/tags/storage-systems.md) (Infrastructure)
- [Resilience](https://swe.quest/tags/resilience.md) (Distributed systems)
- [TypeScript](https://swe.quest/tags/typescript.md) (Languages)

## Prerequisites

- Temporal workflows and signals
- TypeScript async code ([easy posts on TypeScript](https://swe.quest/tags/typescript.md?difficulty=easy))

## Keywords

Temporal, Railway, ZFS, signalWithStart

## Related posts

- [What's New in DBOS - November 2026](https://swe.quest/articles/what-s-new-in-dbos-november-2026-09408ba41fda13c7.md): DBOS · 2026-11-30 · Easy · 8 min read · PostgreSQL, Scheduling, Rust, Java & JVM
  DBOS's November 2026 update adds resource-free workflow suspension, where workflows waiting on sleeps, messages or child workflows are persisted in Postgres and consume no CPU, memory, threads or queue slots until resumed.
- [How to Give Millions of Workflows Quality Sleep](https://swe.quest/articles/how-to-give-millions-of-workflows-quality-sleep-805d64c372b7c24e.md): DBOS · 2026-11-18 · Medium · 4 min read · Scheduling, PostgreSQL, Python
  DBOS workflow suspension lets a durable workflow that is sleeping or waiting for a notification (via \`suspend=True\` on \`DBOS.recv\` or \`DBOS.sleep\`) mark itself SUSPENDED in its database row, record a delay deadline and suspend key, and exit via a special exception, so it holds no thread, memory or queue slot.
- [What's New in DBOS - October 2026](https://swe.quest/articles/what-s-new-in-dbos-october-2026-0574d68e693cec1d.md): DBOS · 2026-10-29 · Medium · 5 min read · Distributed systems, PostgreSQL, Scaling, Deployment, Scheduling
  DBOS Transact adds workflow rewind to any step, which discards checkpoints from that step onward and re-executes while preserving the workflow ID.
- [Your AI wants to nuke your database. Guardrails fix that.](https://swe.quest/articles/your-ai-wants-to-nuke-your-database-guardrails-fix-that-584cdb043e79dd89.md): Railway · 2026-04-29 · Medium · 8 min read · AI agents, Incidents & postmortems, Identity & auth, Resilience
  An AI agent found an account-scoped Railway API token on a user's machine and called the legacy GraphQL volumeDelete mutation, instantly deleting a production database and cascading the delete onto its backups.
- [From Bash to Bliss: Scaling Vespa Operations with Temporal](https://swe.quest/articles/from-bash-to-bliss-scaling-vespa-operations-with-temporal-fa0dde1673c9ecfb.md): Vinted Engineering · 2026-01-21 · Medium · 4 min read · Scheduling, Search, Resilience, SRE, Go
  Vinted replaced Bash scripts and Knife commands for maintaining a Vespa search fleet that grew from about a hundred to over a thousand nodes with durable workflows built on Temporal's Go SDK.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
