mirror of
https://github.com/frappe/gunicorn.git
synced 2026-07-03 03:01:31 +08:00
Demonstrates replacing Celery with Gunicorn's dirty arbiters for background task processing. Includes: - 4 task workers: Email, Image, Data, Scheduled - Stateful workers with persistent connections/caches - Streaming progress for long-running tasks - Per-app worker allocation - Flask API with 15+ endpoints - Docker deployment (single container vs Celery's 4+) - Unit tests (19 tests) and integration tests - Migration guide from Celery
11 lines
237 B
Python
11 lines
237 B
Python
"""
|
|
Pytest configuration for Celery Replacement tests.
|
|
"""
|
|
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
# Add gunicorn source to path for imports
|
|
gunicorn_root = Path(__file__).parent.parent.parent.parent
|
|
sys.path.insert(0, str(gunicorn_root))
|