Skip to content

Commit e5f8d96

Browse files
Switch to sqlalchemy+sqlite celery broker.
1 parent 0af9c66 commit e5f8d96

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

settings.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,12 @@ default:
4141
- preloads/stubs
4242

4343
# Documented in CelerySettings class
44-
celery_workers: 8
45-
celery_pool_type: "threads"
46-
celery_broker: "sqlite"
47-
celery_broker_uri: "mongodb://localhost:27017/celery-{context_id}"
48-
celery_broker_queue: "celery"
44+
celery_broker_uri: sqlalchemy+sqlite:///{project_dir}/celery-{context_id}.db
45+
celery_multiprocess_pool: true # Enable multiprocess worker pool
46+
celery_workers: 8 # Number of worker processes
47+
celery_pool_type: solo # Each worker uses solo pool
48+
celery_worker_restart_interval: 30 # Restart workers if unresponsive for 30 seconds
49+
celery_worker_log_level: info
4950

5051
# Test environment
5152
testing:

0 commit comments

Comments
 (0)