File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
pythonkr_backend/pythonkr_backend/settings Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -32,8 +32,8 @@ export DJANGO_SETTINGS_MODULE="pythonkr_backend.settings.prod"
32
32
./manage.py loaddata fixtures.json
33
33
./manage.py collectstatic --clear --noinput
34
34
35
- # stop celery worker
36
- celery -A pythonkr_backend multi stop worker1 -c2 \
35
+ # stop celery worker with beat
36
+ celery -A pythonkr_backend multi stop worker1 -c2 -B \
37
37
--pidfile=/home/pk/celery-%n.pid \
38
38
--logfile=/home/pk/logs/celery-%n%I.log
39
39
@@ -60,7 +60,7 @@ gunicorn --workers=2 \
60
60
--pid ${PID_FILE} \
61
61
pythonkr_backend.wsgi
62
62
63
- # start celery worker
64
- celery -A pythonkr_backend multi start worker1 -c2 \
63
+ # start celery worker with beat
64
+ celery -A pythonkr_backend multi start worker1 -c2 -B \
65
65
--pidfile=/home/pk/celery-%n.pid \
66
66
--logfile=/home/pk/logs/celery-%n%I.log
Original file line number Diff line number Diff line change 79
79
CELERY_TASK_TRACK_STARTED = True
80
80
CELERY_BROKER_URL = f"amqp://{ CELERY_BROKER_USERNAME } :{ CELERY_BROKER_PASSWORD } @localhost:5672/{ CELERY_BROKER_VHOST } "
81
81
CELERY_TASK_TIME_LIMIT = 30 * 60
82
- CELERY_RESULT_BACKEND = 'django-db'
82
+ CELERY_RESULT_BACKEND = 'django-db'
83
+
84
+ # django-celery-beat
85
+ CELERY_BEAT_SCHEDULER = 'django_celery_beat.schedulers:DatabaseScheduler'
You can’t perform that action at this time.
0 commit comments