-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve the pool API and default behavior, and change param precedence #207
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #207 +/- ##
==========================================
+ Coverage 97.58% 97.62% +0.04%
==========================================
Files 14 14
Lines 1491 1517 +26
Branches 314 320 +6
==========================================
+ Hits 1455 1481 +26
Misses 15 15
Partials 21 21
|
|
I wonder if, in line with not calling We could, for example, define a location-specific counterpart to The main issue I see is that, for existing |
Nevermind. I started working on that, but it complicates things too much. Having a separate |
zyte_api_session_pool
request metadata key, to allow overriding the pool ID per request.zyte_api_session_params
orzyte_api_session_location
request metadata keys results in different pool IDs by default per param set or location. It is<domain>[<number>]
(e.g.example.com[0]
) for param sets, with the corresponding parameters being logged as INFO for reference, and<domain>@<comma-separated non-empty location components>
for locations (e.g.example.com@US,TX,10001
).