Files
cannaiq/backend/migrations
Kelly 69a013538c
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
feat(workers): Session pool with preflight qualification and gold badge
Complete worker session flow:
1. Claim ONE task first (determines geo)
2. Get IP matching task's city/state
3. Sticky fingerprint: 1 IP = 1 fingerprint (reuse or generate new)
4. Preflight/qualify: verify antidetect working
5. Gold badge awarded on preflight pass
6. Claim 2-4 more tasks for same geo (total 3-5)
7. Execute tasks
8. Retire session: badge cleared, IP on 8hr cooldown

Changes:
- Enable USE_SESSION_POOL=true in K8s deployment
- Add preflight step after IP acquisition
- Enforce 1 IP = 1 fingerprint rule
- Block unqualified workers from claiming tasks
- Close qualification bypass in task-service.ts
- Add worker badge column (gold = qualified)
- Random 3-5 tasks per session for natural traffic

Migrations:
- 129: claim_tasks_batch_for_geo function
- 130: worker_registry badge column and functions

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-17 11:57:19 -07:00
..