Kelly
1861e18396
feat(workers): Implement geo-based task pools
...
Workers now follow the correct flow:
1. Check what pools have pending tasks
2. Claim a pool (e.g., Phoenix AZ)
3. Get Evomi proxy for that geo
4. Run preflight with geo proxy
5. Pull tasks from pool (up to 6 stores)
6. Execute tasks
7. Release pool when exhausted (6 stores visited)
Task pools group dispensaries by metro area (100mi radius):
- Phoenix AZ, Tucson AZ
- Los Angeles CA, San Francisco CA, San Diego CA, Sacramento CA
- Denver CO, Chicago IL, Boston MA, Detroit MI
- Las Vegas NV, Reno NV, Newark NJ, New York NY
- Oklahoma City OK, Tulsa OK, Portland OR, Seattle WA
Benefits:
- Workers know geo BEFORE getting proxy (no more "No geo assigned")
- IP diversity within metro area (Phoenix worker can use Tempe IP)
- Simpler worker logic - just match pool geo
- Pre-organized tasks, not grouped at claim time
New files:
- migrations/113_task_pools.sql - schema, seed data, functions
- src/services/task-pool.ts - TypeScript service
Env vars:
- USE_TASK_POOLS=true (new system)
- USE_IDENTITY_POOL=false (disabled)
🤖 Generated with [Claude Code](https://claude.ai/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-12-14 01:41:52 -07:00
..
2025-11-28 19:45:44 -07:00
2025-11-28 19:45:44 -07:00
2025-11-28 19:45:44 -07:00
2025-12-07 23:48:35 -07:00
2025-11-28 19:45:44 -07:00
2025-11-28 19:45:44 -07:00
2025-12-07 23:48:35 -07:00
2025-12-07 23:48:35 -07:00
2025-12-07 23:48:35 -07:00
2025-12-07 23:48:35 -07:00
2025-11-30 09:29:15 -07:00
2025-11-30 09:29:15 -07:00
2025-11-30 09:29:15 -07:00
2025-11-30 09:29:15 -07:00
2025-11-30 09:29:15 -07:00
2025-11-30 09:29:15 -07:00
2025-11-30 18:54:52 -07:00
2025-11-30 18:54:52 -07:00
2025-11-30 18:54:52 -07:00
2025-12-01 00:07:00 -07:00
2025-11-30 23:52:48 -07:00
2025-12-01 00:13:41 -07:00
2025-12-01 00:18:47 -07:00
2025-12-01 08:52:54 -07:00
2025-12-01 13:59:01 -07:00
2025-12-02 13:28:23 -07:00
2025-12-02 13:28:23 -07:00
2025-12-02 13:28:23 -07:00
2025-12-02 11:34:01 -07:00
2025-12-02 13:28:23 -07:00
2025-12-02 13:28:23 -07:00
2025-12-03 18:45:05 -07:00
2025-12-03 18:45:05 -07:00
2025-12-03 18:45:05 -07:00
2025-12-05 16:10:15 -07:00
2025-12-05 16:10:15 -07:00
2025-12-07 11:30:57 -07:00
2025-12-07 11:30:57 -07:00
2025-12-07 11:30:57 -07:00
2025-12-07 11:30:57 -07:00
2025-12-07 11:30:57 -07:00
2025-12-07 11:30:57 -07:00
2025-12-07 11:30:57 -07:00
2025-12-07 11:30:57 -07:00
2025-12-07 11:30:57 -07:00
2025-12-07 11:30:57 -07:00
2025-12-07 11:30:57 -07:00
2025-12-07 11:30:57 -07:00
2025-12-07 11:30:57 -07:00
2025-12-07 11:30:57 -07:00
2025-12-07 11:30:57 -07:00
2025-12-09 00:05:34 -07:00
2025-12-07 11:30:57 -07:00
2025-12-07 11:30:57 -07:00
2025-12-07 11:30:57 -07:00
2025-12-09 00:05:34 -07:00
2025-12-07 11:30:57 -07:00
2025-12-07 11:30:57 -07:00
2025-12-07 11:30:57 -07:00
2025-12-07 11:30:57 -07:00
2025-12-07 11:30:57 -07:00
2025-12-08 10:19:49 -07:00
2025-12-07 11:04:12 -07:00
2025-12-07 11:04:12 -07:00
2025-12-07 11:04:12 -07:00
2025-12-07 22:48:21 -07:00
2025-12-07 22:48:21 -07:00
2025-12-07 22:48:21 -07:00
2025-12-07 22:48:21 -07:00
2025-12-07 23:18:52 -07:00
2025-12-08 10:19:49 -07:00
2025-12-09 00:05:34 -07:00
2025-12-09 00:05:34 -07:00
2025-12-09 00:05:34 -07:00
2025-12-09 00:05:34 -07:00
2025-12-09 00:05:34 -07:00
2025-12-09 00:05:34 -07:00
2025-12-09 00:05:34 -07:00
2025-12-09 11:04:50 -07:00
2025-12-11 11:47:24 -07:00
2025-12-09 16:27:03 -07:00
2025-12-09 20:44:53 -07:00
2025-12-10 00:44:59 -07:00
2025-12-10 00:44:59 -07:00
2025-12-10 00:44:59 -07:00
2025-12-10 22:15:35 -07:00
2025-12-10 22:15:35 -07:00
2025-12-10 22:15:35 -07:00
2025-12-10 22:15:35 -07:00
2025-12-10 22:58:00 -07:00
2025-12-11 21:07:58 -07:00
2025-12-11 22:47:52 -07:00
2025-12-11 23:45:04 -07:00
2025-12-11 23:28:05 -07:00
2025-12-12 01:53:15 -07:00
2025-12-12 09:24:08 -07:00
2025-12-13 14:14:21 -07:00
2025-12-12 22:15:04 -07:00
2025-12-12 22:55:21 -07:00
2025-12-12 23:37:28 -07:00
2025-12-13 00:13:41 -07:00
2025-12-12 23:50:53 -07:00
2025-12-13 00:05:21 -07:00
2025-12-13 00:08:44 -07:00
2025-12-13 00:35:17 -07:00
2025-12-13 01:09:02 -07:00
2025-12-13 01:20:59 -07:00
2025-12-13 03:24:42 -07:00
2025-12-13 03:24:42 -07:00
2025-12-13 03:24:42 -07:00
2025-12-13 03:24:42 -07:00
2025-12-13 12:03:08 -07:00
2025-12-13 13:23:35 -07:00
2025-12-13 13:23:35 -07:00
2025-12-13 14:14:21 -07:00
2025-12-13 15:16:48 -07:00
2025-12-13 16:00:09 -07:00
2025-12-13 18:46:58 -07:00
2025-12-13 19:54:26 -07:00
2025-12-13 20:17:52 -07:00
2025-12-13 22:54:45 -07:00
2025-12-14 01:41:52 -07:00
2025-11-28 19:45:44 -07:00
2025-11-28 19:45:44 -07:00