Files
Sipro-Stocks/start_taskiq.sh

15 lines
371 B
Bash
Executable File

#!/bin/bash
ulimit -n 97816
GREEN='\033[0;32m'
log_info() {
echo -e "${GREEN}[INFO] $1${NC}"
}
# Start the Taskiq worker
log_info "Starting Taskiq worker..."
taskiq worker background:taskiq_broker background.tasks --max-async-task 1000 --max-threadpool-threads 8 --max-prefetch 10000 --workers 1
# Log when the Taskiq worker stops
log_info "Taskiq worker stopped"