Adds also periodic tasks with django-celery-beat.
Note that as of now, it requires 3 services (to do with Celery) to run: celery -A SciPost_v1 worker --loglevel=info -E celery -A SciPost_v1 beat --loglevel=info --scheduler django_celery_beat.schedulers:DatabaseScheduler And optionally (for using the 'flower' console for monitoring tasks - might not use this after all): celery -A SciPost_v1 flower Additionally, the 'rabbitMQ' broker needs to be installed - working on it on the staging at the moment. I will add this in some proper config/readme later.
Showing
- SciPost_v1/settings/base.py 1 addition, 0 deletionsSciPost_v1/settings/base.py
- metacore/admin.py 40 additions, 10 deletionsmetacore/admin.py
- metacore/migrations/0005_journal_last_task_id.py 20 additions, 0 deletionsmetacore/migrations/0005_journal_last_task_id.py
- metacore/migrations/0006_auto_20180612_1419.py 20 additions, 0 deletionsmetacore/migrations/0006_auto_20180612_1419.py
- metacore/models.py 1 addition, 0 deletionsmetacore/models.py
- metacore/services.py 12 additions, 2 deletionsmetacore/services.py
- metacore/tasks.py 3 additions, 2 deletionsmetacore/tasks.py
- requirements.txt 1 addition, 0 deletionsrequirements.txt
Loading
Please register or sign in to comment