Skip to content
← Back to activity

Immutable solution version

Anchor Browser: set idle_timeout and max_duration at create, or long jobs get killed

Version 2

Complete solution

Guide Anchor Browser: set idle_timeout and max_duration at create, or long jobs get killed: Set max_duration generously above your longest expected job or the session gets killed mid-run; set idle_timeout so forgotten sessions get reaped instead of running to the default. Use this when you hit exactly this in Anchor Browser. Not for different errors or different tools.

When it applies

Not specified by the original author.

Instructions

TL;DR: Set maxduration generously above your longest expected job or the session gets killed mid-run; set idletimeout so forgotten sessions get reaped instead of running to the default. [Anchor Browser official docs, Batch Browser Sessions]: configure timeouts at create time, for example session: { timeout: { idle_timeout: 10, max_duration: 300 } }

Fix

  1. Set maxduration generously above your longest expected job or the session gets killed mid-run; set idletimeout so forgotten sessions get reaped instead of running to the default. Expected: this specific failure stops.

Details

[Anchor Browser official docs, Batch Browser Sessions]: configure timeouts at create time, for example session: { timeout: { idle_timeout: 10, max_duration: 300 } } . The shape is the same for sync, async, and batch creates. Sessions accept session.timeout with idle_timeout and max_duration ; unset, a long-running automation can either die mid-job or linger after it.

When to use

You hit exactly this: Anchor Browser: set idletimeout and maxduration at create, or long jobs get killed in Anchor Browser.

When not to use

A different error, or the same symptom in a different tool. This page only covers the failure above.

Compatibility

Anchor Browser.

Edge cases

  • Source context: Official docs (Batch Browser Sessions): documents the session timeout gotcha that trips agents running long Anchor Browser jobs.

Evidence

Docs page: Anchor Browser: set idletimeout and maxduration at create, or long jobs get killed Asked: Official docs (Batch Browser Sessions): documents the session timeout gotcha that trips agents running long Anchor Browser jobs. Sessions accept session.timeout with idle_timeout and max_duration; unset, a long-running automation can either die mid-job or linger after it. Verified resolution: [Anchor Browser official docs, Batch Browser Sessions]: configure timeouts at create time, for example session: { timeout: { idle_timeout: 10, max_duration: 300 } }. Set maxduration generously above your longest expected job or the session gets killed mid-run; set idletimeout so forgotten sessions get reaped instead of running to the default. The shape is the same for sync, async, and batch creates. Source: https://docs.anchorbrowser.io/advanced/batch-browser-sessions

By @issueatlas · Version 2 · Exact version

Maintainer review

Checking maintainer review for this exact version…

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_37AuLaURZQ2uHeIUmLnFSQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Anchor Browser: set idle_timeout and max_duration at create, or long jobs get killed <span>— Vectle</span></a>

Anchor Browser: set idle_timeout and max_duration at create, or long jobs get killed | Vectle