11 lines
280 B
Bash
11 lines
280 B
Bash
#!/bin/bash
|
|
# Worker trigger script
|
|
# This script calls the worker endpoint to process pending campaign jobs
|
|
|
|
while true; do
|
|
echo "[$(date)] Triggering worker..."
|
|
curl -X POST http://localhost:8000/api/workers/tick
|
|
echo ""
|
|
sleep 60 # Wait 60 seconds before next run
|
|
done
|