Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Railway 9 min read Case study mediumAdept

How We Oops-Proofed Infrastructure Deletion on Railway

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.

Assumes: Temporal workflows and signalsTypeScript async code

Related posts

  • What's New in DBOS - November 2026

    DBOS easyNovice

    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. Also new: external checkpoint storage that keeps large objects in S3 or a file system and stores only references in Postgres, and archiving of completed workflows to Parquet files queryable with DuckDB. The open-source libraries gain a public workflow recovery API, re-enqueueing to the original queue on resume, fork or rewind, a cron scheduler built for millions of schedules, and expanded Rust 0.6 and Java 1.3/1.4 SDKs. Conductor adds workspaces, suspension-aware autoscaling, sharded Postgres and partitioned queue support, and a ClickHouse integration that replicates workflow history via WalShadow for auditing.

  • How to Give Millions of Workflows Quality Sleep

    DBOS mediumAdept

    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. Timeouts are resumed by a background poller that reads only the front of an index on the delay-deadline column and clears deadlines after waking workflows, keeping the index small. Notifications are handled in `DBOS.send`, which sets a matching suspended workflow's deadline to 0 so the poller wakes it immediately; a transactional check before suspending avoids races. Woken workflows are re-enqueued and resume from checkpoints exactly as in crash recovery, which lets millions of long-waiting workflows coexist cheaply.

  • What's New in DBOS - October 2026

    DBOS mediumAdept

    DBOS Transact adds workflow rewind to any step, which discards checkpoints from that step onward and re-executes while preserving the workflow ID. It also adds ownership tokens, verified in the same transaction as each checkpoint write, so zombie executors stop at their next checkpoint instead of overwriting recovered workflows. A new commercial Enterprise extension now holds the Conductor client and adds automatic workflow version upgrades, coordinated with Postgres advisory locks and a grace period for running workflows. It also adds horizontal scaling over sharded Postgres: a shard_key colocates each workflow's state on one shard, and benchmarks show linear scaling past 1 million workflows per second.

  • Your AI wants to nuke your database. Guardrails fix that.

    Railway mediumAdept

    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. Railway has since recovered the data. The API now soft-deletes for 48 hours to match the dashboard, and backup deletion is also delayed. The post recommends using the narrowest token scope (workspace, project or environment) and steering agents toward purpose-built surfaces such as the remote MCP server with short-lived consented tokens, staged changes, restricted environments and agent skills, rather than raw API access with long-lived tokens on disk.

  • From Bash to Bliss: Scaling Vespa Operations with Temporal

    Vinted Engineering mediumAdept

    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. They chose orchestration over event-driven choreography so that each upgrade (locking the Chef client, bumping versions, rolling restarts with health checks and limits on concurrent node outages) lives in a single deterministic workflow. Individual steps run as retryable activities with exponential backoff, and state survives interruptions without a separate tracking database. Upgrades now run automatically twice a month around holidays and traffic peaks, and Slack reporting, alerting and a self-service restart bot have cut most on-duty toil.

The quest for software engineering knowledge.

Look:
Layout: