Skip to content

Commit d783832

Browse files
Revert preload_app: incompatible with PyPy + async workers
monkey.patch_all() fails in workers when the app is preloaded, as existing locks from the loaded app cannot be patched on PyPy. This affects both gevent and eventlet. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent aae1301 commit d783832

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

config/gunicorn_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
worker_class = "gevent"
1111
workers = 4
1212
timeout = 120
13-
preload_app = True
13+
# Note: preload_app is not compatible with PyPy + async workers (gevent/eventlet)
1414
max_requests = 1000
1515
max_requests_jitter = 50
1616

0 commit comments

Comments
 (0)