Add a session reuse strategy option to `SessionPool` · Issue #2135 · apify/crawlee-python · GitHub
Skip to content

Add a session reuse strategy option to SessionPool #2135

Open

Description

@vdusek

SessionPool.get_session() (src/crawlee/sessions/_session_pool.py) always picks a random usable session, which is not always what a crawl wants. Add a configurable reuse strategy, matching the sessionReuseStrategy option in JS.

JS implementation: apify/crawlee#3587

✍️ Drafted by Claude Code

Activity

  1. added
    enhancementNew feature or request.
    t-toolingIssues with this label are in the ownership of the tooling team.
    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

    enhancementNew feature or request.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