ClaudeCloudflare Developer Platform2026/07/09 12:00

Workflows - Workflows now supports delay functions when retrying

要点だけを先に読めるように短く再構成したセクションです。

元記事

Quick Digest

要約

要点だけを先に読めるように短く再構成したセクションです。

claudeja

Workflows - Workflows now supports delay functions when retrying の要約

Key Points

  • ポイント1: Changelog New updates and improvements at Cloudflare.
  • ポイント2: Subscribe to RSS View RSS feeds ← Back to all posts Workflows now supports delay functions when retrying Jul 09, 2026 Workflows With Workflows , you can configure built-in retry be
  • ポイント3: Previously, you could configure step retries with fixed delay durations, such as seconds, minutes, or hours, and backoff strategies such as constant , linear , or exponential .

Summary

この記事は 2026-07-09 に公開された「Workflows - Workflows now supports delay functions when retrying」の内容を日本語で簡潔にまとめたものです。

Key Points

  • ポイント1: Changelog New updates and improvements at Cloudflare.
  • ポイント2: Subscribe to RSS View RSS feeds ← Back to all posts Workflows now supports delay functions when retrying Jul 09, 2026 Workflows With Workflows , you can configure built-in retry be
  • ポイント3: Previously, you could configure step retries with fixed delay durations, such as seconds, minutes, or hours, and backoff strategies such as constant , linear , or exponential .

Full Translation

翻訳

原文の流れを保ったまま読める翻訳セクションです。

claudeja

Workflows - Workflows now supports delay functions when retrying(原文タイトル)

概要

公開日: 2026-07-09 翻訳生成に失敗したため、原文をそのまま保存しています。

原文

Changelog New updates and improvements at Cloudflare. Subscribe to RSS View RSS feeds ← Back to all posts Workflows now supports delay functions when retrying Jul 09, 2026 Workflows With Workflows , you can configure built-in retry behavior for each step. Previously, you could configure step retries with fixed delay durations, such as seconds, minutes, or hours, and backoff strategies such as constant , linear , or exponential . Step retries now support dynamic delay functions. Instead of choosing only a base delay and backoff strategy, pass a function to retries.delay and calculate the next delay from the failed attempt and thrown error. This is useful when retries should depend on the failure. Your Workflow may need to wait longer after a rate-limit error, but retry sooner after a short network failure. The delay function can also accommodate provider guidance if, for example, a downstream API returns a Retry-After value in its error messaging. JavaScript TypeScript JavaScript await step . do ( "sync customer" , { retries : { limit : 5 , delay : ({ ctx , error }) => { if ( error . message . includes ( "rate limit" )) { return ${ ctx . attempt * 30 } seconds ; } return "10 seconds" ; }, }, }, async () => { await syncCustomer () ; }, ) ; { if (error.message.includes("rate limit")) { return `${ctx.attempt * 30} seconds`; } return "10 seconds"; }, }, }, async () => { await syncCustomer(); },);"> TypeScript await step . do ( "sync customer" , { retries : { limit : 5 , delay : ({ ctx , error }) => { if ( error . message . includes ( "rate limit" )) { return ${ ctx . attempt * 30 } seconds ; } return "10 seconds" ; }, }, }, async () => { await syncCustomer () ; }, ) ; { if (error.message.includes("rate limit")) { return `${ctx.attempt * 30} seconds`; } return "10 seconds"; }, }, }, async () => { await syncCustomer(); },);"> Dynamic delay functions can return a duration string, a number, or a promise that resolves to a duration. Use them to add adaptive retry behavior without writing separate queue or scheduling logic. For more information, refer to Sleeping and retrying . Resources API New to Cloudflare? Directory Sponsorships Open Source Cloudflare Research Support Help Center System Status Compliance GDPR Company cloudflare.com Our team Careers Tools Cloudflare Radar Cloudflare Labs Speed Test Is BGP Safe Yet? Certificate Transparency Community Community forum X Discord YouTube GitHub © 2026 Cloudflare, Inc. Privacy Policy Terms of Use Report Security Issues Trademark Cookie Settings Was this helpful? Yes No