Spaces:
Sleeping
Sleeping
Harshit Ghosh commited on
Commit ·
ced4437
1
Parent(s): f772e3c
Fix Celery prefetching deadlock by enabling Fair Scheduling
Browse files1 unmodified line23456781 unmodified line# Start Celery worker in background# We use concurrency=2 to avoid memory overload on the 16GB free tiercelery -A tasks worker --loglevel=info --concurrency=2 -B &CELERY_PID=$!# Trap SIGTERM and SIGINT for graceful shutdown1 unmodified line23456781 unmodified line# Start Celery worker in background# We use concurrency=2 to avoid memory overload on the 16GB free tiercelery -A tasks worker --loglevel=info --concurrency=2 -O fair -B &CELERY_PID=$!# Trap SIGTERM and SIGINT for graceful shutdown
75 unmodified lines76777879808175 unmodified linestask_time_limit=3600, # 1 hour hard limittask_soft_time_limit=3300, # 55 min soft limitresult_expires=86400, # 24 hours)extra_conf: dict[str, Any] = {}75 unmodified lines767778798081828375 unmodified linestask_time_limit=3600, # 1 hour hard limittask_soft_time_limit=3300, # 55 min soft limitresult_expires=86400, # 24 hoursworker_prefetch_multiplier=1, # Prevent long-running tasks from getting stuck behind each othertask_acks_late=True, # Only acknowledge task after it completely finishes)extra_conf: dict[str, Any] = {}
start.sh+1-1
tasks.py+2