← All courses

EDGE FDE

Advanced

Pause and resume long AI jobs

Survive app backgrounding and retries so long tasks finish without starting over.

Checkpoint and resume mini workflow engine for on-device agent work.

Write progress to disk. Restore a new LanguageModelSession. Do not claim the old session survived. iOS 27 and macOS 27 only.

Lessons

  1. Why long jobs die
  2. Checkpoint what is already done
  3. Resume after a retry or relaunch
  4. Background the job without losing it
  5. Ship a tiny workflow engine

Key concepts

Takeaways

Agent briefs

Related courses

Run an agent with a state machine · Make several agents agree first · Talk to tools with MCP · Stop prompt attacks and leaks