Open brianhelba opened 4 years ago
There are three approaches that I know of to test with Celery:
task_always_eager
. Executes all tasks sequentially within the delay()
call. Not recommended. DATABASES
) are propagated to the subprocess.An ideal solution would be to have a context manager handle number three. Additionally, it should create an ephemeral queue per pool. This context manager would be nice to have for a couple things:
runserver
To the extent this requires settings changes to Celery, consider updating:
TestingBaseConfiguration
: https://github.com/girder/django-composed-configuration/blob/master/composed_configuration/_configuration.py#L59