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
+7
-1
@@ -15,7 +15,12 @@
|
||||
"engines": {
|
||||
"node": "22.x"
|
||||
},
|
||||
"browserslist": ["chrome >= 91", "edge >= 91", "firefox >= 90", "safari >= 15"],
|
||||
"browserslist": [
|
||||
"chrome >= 91",
|
||||
"edge >= 91",
|
||||
"firefox >= 90",
|
||||
"safari >= 15"
|
||||
],
|
||||
"dependencies": {
|
||||
"@dnd-kit/core": "^6.3.1",
|
||||
"@dnd-kit/sortable": "^10.0.0",
|
||||
@@ -27,6 +32,7 @@
|
||||
"@tanstack/react-query": "^5.59.15",
|
||||
"@tanstack/react-query-next-experimental": "^5.59.16",
|
||||
"@types/cheerio": "^0.22.35",
|
||||
"@upstash/redis": "^1.38.2",
|
||||
"@vidstack/react": "^1.12.13",
|
||||
"axios": "^1.7.7",
|
||||
"axios-cookiejar-support": "^5.0.3",
|
||||
|
||||
Reference in new issue
Block a user