You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: install/installation.md
+101Lines changed: 101 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -217,6 +217,107 @@ The file `mod_ci/cron.py` is to be run in periodic intervals. To setup a cron jo
217
217
```
218
218
Change the `/var/www/sample-plaform` directory, if you have installed the platform in a different directory.
219
219
220
+
## Optional: Setting up Celery Task Queue
221
+
222
+
As an alternative to cron-based polling, you can use Celery with Redis for event-driven test processing. This provides faster test execution, better retry handling, and parallel processing.
223
+
224
+
### Installing Redis
225
+
226
+
```bash
227
+
sudo apt update
228
+
sudo apt install redis-server
229
+
230
+
# Configure Redis
231
+
sudo nano /etc/redis/redis.conf
232
+
# Set: supervised systemd
233
+
# Set: bind 127.0.0.1 ::1
234
+
235
+
# Enable and start Redis
236
+
sudo systemctl enable redis-server
237
+
sudo systemctl start redis-server
238
+
239
+
# Verify Redis is running
240
+
redis-cli ping # Should return PONG
241
+
```
242
+
243
+
### Configuring Celery
244
+
245
+
Add the following to your `config.py`:
246
+
247
+
```python
248
+
# Celery Configuration
249
+
CELERY_BROKER_URL='redis://localhost:6379/0'
250
+
CELERY_RESULT_BACKEND='redis://localhost:6379/0'
251
+
USE_CELERY_TASKS=True# Set to False to use cron instead
0 commit comments