sendio/trigger-worker.sh
2026-01-13 05:17:57 +02:00

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