Skip to content

Deadline per shot so a hung renderer can't hang the run #54

Closed

Description

@tmashara

What
A deadline around each shot (load, settle, screenshot), e.g. 120s, that ends it with a named timeout error and goes through the existing retry-once and error path.

Why
goto has a 45s timeout and the settle steps race their own timers, but nothing bounds the whole thing. A renderer killed for memory, or a page that never returns from page.evaluate, hangs the whole run with no output. yanfishel/visual-regression-test hit exactly this and wraps every capture (apps/worker/src/deadline.ts, withDeadline; reasoning in docs/notes/worker.md).

How
Promise.race the shot against a timer in run.ts. On expiry, close the page's context (so the hung evaluate is abandoned), record timeout after 120s at <step>, and let the retry run once in a fresh context. The route then errors (exit 3) instead of hanging.

Activity

  1. added
    enhancement
    on Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions