Skip to content

Commit c3d5b38

Browse files
committed
docs: note session-rotation collapse in v4 upgrade guide
1 parent 4d06d62 commit c3d5b38

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

docs/upgrading/upgrading_v4.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,10 @@ await crawler.run([{ url: 'https://example.com', sessionId: 'basic' }]);
198198

199199
More complex routing (more tiers, weighted draws, sticky assignment, cooldowns) can be expressed with additional named sessions and custom `errorHandler` logic.
200200

201+
## `maxSessionRotations` and `request.sessionRotationCount` are removed
202+
203+
Session errors no longer have their own retry budget. The `maxSessionRotations` crawler option, the `Request.sessionRotationCount` property, and the special-case retry logic for `SessionError` are all gone. A `SessionError` now retires the session and counts toward `maxRequestRetries` like any other failure, so configure a single retry limit via `maxRequestRetries` (default `3`). `SessionError` also no longer extends `RetryRequestError` - if you were catching `RetryRequestError` to detect a session-triggered retry, branch on `SessionError` directly instead.
204+
201205
## Remove `experimentalContainers` option
202206

203207
This experimental option relied on an outdated manifest version for browser extensions, it is not possible to achieve this with the currently supported versions.

0 commit comments

Comments
 (0)