#!/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