Skip to content

Add a session reuse strategy option to SessionPool #2135

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

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