Files
eveAI/scripts/start_eveai_workers.sh
2024-06-26 12:02:14 +02:00

14 lines
548 B
Bash
Executable File

#!/bin/bash
cd "/app/" || exit 1
export PYTHONPATH="$PYTHONPATH:/app/"
# Start a worker for the 'embeddings' queue with higher concurrency
celery -A eveai_workers.celery worker --loglevel=info -Q embeddings --autoscale=2,8 --hostname=embeddings_worker@%h &
# Start a worker for the 'llm_interactions' queue with auto-scaling - not necessary, in eveai_chat_workers
# celery -A eveai_workers.celery worker --loglevel=info - Q llm_interactions --autoscale=2,8 --hostname=interactions_worker@%h &
# Wait for all background processes to finish
wait