feat(tlk): persist Toloka session in Redis across cold starts
Store the serialized cookie jar in Upstash Redis after login and restore it on instance start, so serverless cold starts reuse the session instead of re-authenticating. Falls back to the previous in-memory behavior when Redis is not configured or unavailable. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
16601f20f3
commit
131beeb07f
7 files changed
+105
-3
No files matched your search
@@ -18,3 +18,6 @@ export const TOLOKA_PASSWORD = process.env.TOLOKA_PASSWORD;
|
||||
|
||||
export const PIRATE_BAY_HOST = process.env.PIRATE_BAY_HOST;
|
||||
export const YTS_HOST = process.env.YTS_HOST;
|
||||
|
||||
export const UPSTASH_REDIS_REST_URL = process.env.UPSTASH_REDIS_REST_URL || process.env.KV_REST_API_URL;
|
||||
export const UPSTASH_REDIS_REST_TOKEN = process.env.UPSTASH_REDIS_REST_TOKEN || process.env.KV_REST_API_TOKEN;
|
||||
Reference in new issue
Block a user