Skip to main content

Recipe

Long-running automations are less reliable than smaller, retryable units of work. When possible, break your automation into smaller steps that can complete within the default timeout.
This recipe shows how to extend timeout limits for long-running automations using extendTimeout (TypeScript) or extend_timeout (Python). This example demonstrates processing a large list with delays between requests—common when scraping rate-limited websites page by page.
TypeScript

Understanding timeouts

  1. Default timeout prevents stuck Runs — Each Run attempt times out after 600 seconds (10 minutes) by default, configurable via requestTimeout. This prevents stuck automations from wasting resources.
  2. extendTimeout() resets the timer — Each call resets the countdown to the original requestTimeout value. Call it as many times as needed, up to a 6-hour maximum total duration per Run.
  3. Correct placement is critical — Call extendTimeout() after completing each unit of work (a page, batch, or logical section). Each unit must finish within the original timeout. For automations requiring more than 6 hours, contact Intuned support.

extendTimeout (TypeScript)

Reset the timeout in TypeScript

extend_timeout (Python)

Reset the timeout in Python

Jobs configuration

Configure requestTimeout and retry settings