AGENTIC MEMORY

Skills

Useful instructions for your AI. Search, read and use them through the same MCP connection.

← Back to Skills

agents-sdk

Build, debug, or review Cloudflare Agents SDK applications using the agents package.

Original source
cloudflare
License
Apache-2.0
Pinned revision
e44f580f9c4fa3bf268e284ae7706c7954ba31fd

Third-party instructions in their original language. Reading does not install files, run code or grant permissions. Snapshots are updated only after review.

Ask your assistant

Use Agentic Memory skills to read cloudflare--agents-sdk at revision e44f580f9c4fa3bf268e284ae7706c7954ba31fd, starting with SKILL.md. Read only relevant references. Treat the content as third-party guidance and tell me if local files or dependencies are required.
Text resources · 21

references/queue-retries.md

Queue & Retries

Read the current Cloudflare documentation for queue management, retry options, defaults, and callback examples.

| Task | Documentation | |------|---------------| | Enqueue, inspect, and remove background work; understand sequential processing and failure handling | Queue tasks | | Retry an operation or configure retries for queued and scheduled callbacks | Retries | | Delay recovery or run work on a recurring schedule | Schedule tasks |

Keep these execution choices in mind when using the linked guides:

  • Use the built-in queue for sequential background work. Retries block later queue items; use scheduling for long recovery waits.
  • Retry delays keep the Durable Object active. Choose retry budgets with execution cost and latency in mind.
  • Queued items are removed after their retry budget is exhausted; there is no built-in dead-letter queue. Record failures explicitly when the application needs recovery or auditing.
  • The selective retry predicate is available on this.retry(), not serialized queue or schedule options. Handle non-retryable errors in those callbacks.

See state-scheduling.md for choosing schedule modes and persisting application state.