From aa9f60ec0b949f6e3c8c56008c2a400e23dc8836 Mon Sep 17 00:00:00 2001 From: Simon Kelly Date: Mon, 12 Aug 2024 16:38:08 +0200 Subject: [PATCH] update celery docs with solo pool --- celery.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/celery.md b/celery.md index 5d099e0..340094d 100644 --- a/celery.md +++ b/celery.md @@ -14,9 +14,13 @@ The easiest way to get going is to [download and install Redis](https://redis.io (if you don't already have it) and then run: ```python -celery -A {{ project_name }} worker -l info +celery -A {{ project_name }} worker -l info --pool=solo ``` +Note that the 'solo' pool is recommended for development but not for production. When running in production, +you should use a more robust pool implementation such as `prefork` (for CPU bound tasks) or `gevent` (for I/O bound +tasks). + ### Running Celery on Windows Celery 4.x [no longer officially supports Windows](https://docs.celeryq.dev/en/4.0/whatsnew-4.0.html#removed-features).