samedi 19 décembre 2015

How to properly test scheduled test using djcelery

I have a periodic task using djcelery. This task is looking into the db and it makes same changes if it is necessary. As you know "python manage.py test" creates a test db, so how I can run this periodic task in this test db?

I tried to run first: python manage.py test

then when I tried to run the following

python manage.py celery worker -l info &

python manage.py celery beat -l info &

the test is terminated

Aucun commentaire:

Enregistrer un commentaire