annotate docs/readme.rst @ 8829:01cb988e82a5

celery: celery-run should only initialize app and sqlalchemy after workers have been forked If app and SqlAlchemy were initialized before launching celery, the forked workers would inherit the database connection ... and that doesn't work. This could be handled by disposing the engine after forking the worker or before each task ... but it remains unnecessary and wrong to initialize the engine early when it isn't used, and then fork it.
author Mads Kiilerich <mads@kiilerich.com>
date Fri, 01 Jan 2021 18:04:16 +0100
parents 03bbd33bc084
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4902
03bbd33bc084 docs: rework stuff
Mads Kiilerich <madski@unity3d.com>
parents:
diff changeset
1 .. _readme:
03bbd33bc084 docs: rework stuff
Mads Kiilerich <madski@unity3d.com>
parents:
diff changeset
2
03bbd33bc084 docs: rework stuff
Mads Kiilerich <madski@unity3d.com>
parents:
diff changeset
3 .. include:: ./../README.rst