Skip to content

Script Start Celery Computation Worker

Alexandar83 edited this page Feb 25, 2025 · 4 revisions

Script Breakdown

1. Starts the Celery computation worker celery_worker_1.

2. If the app runs in "multiprocessing" CONCURRENT_SIMULATION_MODE, the script dynamically adds thread-based concurrency to the Celery worker.

🗒️ multiprocessing.Manager (utilized in The Wall API) can fail when a subprocess spawns its own subprocesses because the communication channels it relies on may not be properly inherited during process forking.

✔ By using --pool=threads, the script avoids forking entirely, ensuring shared resources remain stable and preventing issues like broken communication or deadlocks.


Scripts Index
Home Page


Clone this wiki locally