File tree 4 files changed +18
-6
lines changed
4 files changed +18
-6
lines changed Original file line number Diff line number Diff line change
1
+ from .celery import app as celery_app
2
+
3
+ __all__ = ("celery_app" ,)
Original file line number Diff line number Diff line change
1
+ import os
2
+
3
+ from celery import Celery
4
+
5
+ os .environ .setdefault ("DJANGO_SETTINGS_MODULE" , "core.settings" )
6
+
7
+ app = Celery ("core" )
8
+ app .config_from_object ("django.conf:settings" , namespace = "CELERY" )
9
+ app .autodiscover_tasks ()
Original file line number Diff line number Diff line change @@ -16,14 +16,14 @@ services:
16
16
17
17
celery :
18
18
build : .
19
- command : celery -A web worker -l info
19
+ command : celery -A core worker -l info
20
20
volumes :
21
21
- .:/usr/src/app/
22
22
depends_on :
23
23
- redis
24
24
celery-beat :
25
25
build : .
26
- command : celery -A web beat -l info
26
+ command : celery -A core beat -l info
27
27
volumes :
28
28
- .:/usr/src/app/
29
29
depends_on :
Original file line number Diff line number Diff line change 1
1
# Celery - Redis
2
2
# ------------------------------------------------------------------------------
3
- celery == 5 .2.3 # pyup: < 6.0 # https://github.com/celery/celery
4
- flower == 1.0.0 # https://github.com/mher/flower
3
+ celery == 4 .2.1 # pyup: < 6.0 # https://github.com/celery/celery
4
+ # flower==1.0.0 # https://github.com/mher/flower
5
5
redis == 4.1.0 # https://github.com/redis/redis-py
6
6
7
7
# Django
8
8
# ------------------------------------------------------------------------------
9
9
django == 3.2.11 # pyup: < 4.0 # https://www.djangoproject.com/
10
10
django-redis == 5.2.0 # https://github.com/jazzband/django-redis
11
- django-celery-beat == 2.2.1 # https://github.com/celery/django-celery-beat
11
+ # django-celery-beat==2.2.1 # https://github.com/celery/django-celery-beat
12
12
psycopg2-binary == 2.9.3 # https://github.com/psycopg/psycopg2
13
13
django_filter == 2.4.0 # https://github.com/carltongibson/django-filter
14
14
15
15
# Django REST Framework
16
16
djangorestframework == 3.13.1 # https://github.com/encode/django-rest-framework
17
- django-cors-headers == 3.10.1 # https://github.com/adamchainz/django-cors-headers
17
+ django-cors-headers == 3.10.1 # https://github.com/adamchainz/django-cors-headers
You can’t perform that action at this time.
0 commit comments