File tree Expand file tree Collapse file tree 4 files changed +23
-12
lines changed
Expand file tree Collapse file tree 4 files changed +23
-12
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ services:
4949 volumes :
5050 - .:/opt/app
5151 working_dir : /opt/app
52- command : /opt/django-venv/bin/celery worker -A learnwithpeople --loglevel=INFO
52+ command : /opt/django-venv/bin/celery -A learnwithpeople worker --loglevel=INFO
5353 env_file : docker.env
5454 environment :
5555 - ADMIN_EMAIL=admin@localhost
@@ -70,7 +70,7 @@ services:
7070 volumes :
7171 - .:/opt/app
7272 working_dir : /opt/app
73- command : /opt/django-venv/bin/celery beat -A learnwithpeople --loglevel=DEBUG --pidfile=/var/lib/celery/celerybeat.pid --schedule=/var/lib/celery/celerybeat-schedule
73+ command : /opt/django-venv/bin/celery -A learnwithpeople beat --loglevel=DEBUG --schedule=/var/lib/celery/celerybeat-schedule
7474 env_file : docker.env
7575 environment :
7676 - DATABASE_URL=postgres://lc:password@postgres:5432/lc
Original file line number Diff line number Diff line change 55# set the default Django settings module for the 'celery' program.
66os .environ .setdefault ('DJANGO_SETTINGS_MODULE' , 'learnwithpeople.settings' )
77
8- from django .conf import settings
9-
108app = Celery ('proj' )
11- app .config_from_object ('django.conf:settings' )
12- app .autodiscover_tasks (lambda : settings . INSTALLED_APPS )
9+ app .config_from_object ('django.conf:settings' , namespace = 'CELERY' )
10+ app .autodiscover_tasks ()
1311
1412@app .task (bind = True )
1513def debug_task (self ):
Original file line number Diff line number Diff line change 230230GA_TRACKING_ID = env ('GA_TRACKING_ID' , 'UA-0000000-00' )
231231
232232####### Celery config #######
233+ # TODO this might need to change to CELERY_BROKER_URL
233234BROKER_URL = env ('BROKER_URL' , 'amqp://guest:guest@localhost//' )
234235
235236
236237from celery .schedules import crontab
237238
238- CELERYBEAT_SCHEDULE = {
239+ CELERY_BEAT_SCHEDULE = {
239240 'send_reminders' : {
240241 'task' : 'studygroups.tasks.send_reminders' ,
241242 'schedule' : crontab (minute = '*/5' ),
Original file line number Diff line number Diff line change 1- amqp == 1.4.9
1+ amqp == 5.0.6
22anyjson == 0.3.3
33appdirs == 1.4.3
44arrow == 0.4.2
55Babel == 2.3.4
66beautifulsoup4 == 4.6.3
7- billiard == 3.3.0.23
7+ billiard == 3.6.4.0
88bleach == 3.1.5
99boto == 2.38.0
1010boto3 == 1.7.3
1111botocore == 1.10.3
12+ cached-property == 1.5.2
1213cairocffi == 0.9.0
1314CairoSVG == 2.1.3
14- celery == 3 .1.25
15+ celery == 5 .1.2
1516certifi == 2019.3.9
1617cffi == 1.11.5
1718chardet == 3.0.4
19+ click == 7.1.2
20+ click-didyoumean == 0.0.3
21+ click-plugins == 1.1.1
22+ click-repl == 0.2.0
1823cssselect == 1.0.3
1924cssselect2 == 0.2.1
2025cssutils == 1.0.2
@@ -41,15 +46,18 @@ html5lib==1.0.1
4146httplib2 == 0.18.0
4247icalendar == 4.0.3
4348idna == 2.8
49+ importlib-metadata == 4.8.1
4450jmespath == 0.9.3
45- kombu == 3.0.37
51+ kombu == 5.1.0
4652lxml == 4.2.5
4753Markdown == 3.1.1
54+ mock == 4.0.3
4855olefile == 0.44
4956packaging == 16.8
5057phonenumberslite == 7.7.0
5158Pillow == 6.2.0
5259premailer == 3.2.0
60+ prompt-toolkit == 3.0.20
5361psycopg2 == 2.7.3.1
5462pycparser == 2.19
5563pygal == 2.4.0
@@ -64,10 +72,14 @@ s3-backup-rotate==0.3.3
6472s3transfer == 0.1.13
6573selenium == 3.141.0
6674six == 1.11.0
75+ sqlparse == 0.4.1
6776tinycss2 == 0.6.1
6877transifex-client == 0.12.4
6978twilio == 6.8.0
79+ typing-extensions == 3.10.0.2
7080unicodecsv == 0.14.1
7181urllib3 == 1.25.2
72- vine == 1.1.3
82+ vine == 5.0.0
83+ wcwidth == 0.2.5
7384webencodings == 0.5.1
85+ zipp == 3.5.0
You can’t perform that action at this time.
0 commit comments