---
title: "Durable Execution"
date: 2026-11-20
author: "John Griffin"
---

# Durable Execution

**Durable execution** is a way of running code so its progress survives crashes, restarts and deploys. The platform records the result of every completed step. When the process fails, it replays that record and resumes at the step where it stopped instead of starting over.

For AI agents this matters because their tasks are long and their actions are real. A durable agent does not send the same email twice or repeat a refund after a crash, and it can wait hours or months for a person’s approval without tying up a server. [Temporal](https://spiralscout.com/glossary/temporal) is a widely used open-source platform for durable execution, and Spiral Scout authored its PHP SDK.

We cover the patterns that make it work, and when you don’t need it, in [durable execution for AI agents](https://spiralscout.com/blog/durable-execution-ai-agents).