Skip to content

Treat session errors as regular request retries and drop max_session_rotations #2136

Open

Description

@vdusek

SessionError has its own retry budget via max_session_rotations, on top of max_request_retries, which makes the effective retry count hard to reason about. JS v4 removed the separate budget: a session error retires the session and counts as a normal retry. Dropping use_session_pool (the pool is always on) belongs to the same cleanup.

JS implementation: apify/crawlee#3631, apify/crawlee#3478

This will be a breaking change.

✍️ Drafted by Claude Code

Activity

  1. added
    t-toolingIssues with this label are in the ownership of the tooling team.
    debtCode quality improvement or decrease of technical debt.
    on Aug 7, 2026
  2. added this to the 2.0 milestone on Aug 7, 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

    debtCode quality improvement or decrease of technical debt.t-toolingIssues with this label are in the ownership of the tooling team.

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions