feat(tasks): 25 workers, pool starts paused by default

- Increase worker replicas from 5 to 25
- Task pool now starts PAUSED on deploy, admin must click Start Pool
- Prevents workers from grabbing tasks before system is ready

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Kelly
2025-12-11 01:19:02 -07:00
parent 83b06c21cc
commit a252a7fefd
2 changed files with 5 additions and 3 deletions

View File

@@ -6,10 +6,12 @@
* task-service.ts and routes/tasks.ts. * task-service.ts and routes/tasks.ts.
* *
* State is in-memory and resets on server restart. * State is in-memory and resets on server restart.
* By default, the pool is OPEN (not paused). * By default, the pool is PAUSED (closed) - admin must explicitly start it.
* This prevents workers from immediately grabbing tasks on deploy before
* the system is ready.
*/ */
let taskPoolPaused = false; let taskPoolPaused = true;
export function isTaskPoolPaused(): boolean { export function isTaskPoolPaused(): boolean {
return taskPoolPaused; return taskPoolPaused;

View File

@@ -12,7 +12,7 @@ metadata:
name: scraper-worker name: scraper-worker
namespace: dispensary-scraper namespace: dispensary-scraper
spec: spec:
replicas: 5 replicas: 25
selector: selector:
matchLabels: matchLabels:
app: scraper-worker app: scraper-worker