Junior — Middle
Does Celery run in a separate process or thread for task execution?
sobes.tech AI
Answer from AI
Celery launches tasks in separate processes, not threads. This is because Celery uses workers that typically run as separate processes, which helps avoid Python's GIL (Global Interpreter Lock) limitations and enables parallel execution of tasks. Therefore, each task is executed in a separate worker process.