Long-Running Workflows

Long-Running Workflows

Agents that sleep for days.

Long-Running Workflows

Example: "Email me every morning for a week."

The Sleep Node

You need a persisted database (Postgres).

  1. Node executes.
  2. Next step: "Wait 24 hours."
  3. System saves state to DB, kills process.
  4. Cron job wakes up 24 hours later, loads state, resumes execution.

Without persistence, you cannot build long-running agents.

Subscribe to our newsletter

Get the latest posts delivered right to your inbox.

Subscribe on LinkedIn