Change: Celery app name
This commit is contained in:
parent
8d96e15bed
commit
b0161d0d23
2 changed files with 21 additions and 5 deletions
|
@ -7,7 +7,7 @@ from celery import Celery
|
|||
# Set the default Django settings module for the 'celery' program.
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings')
|
||||
|
||||
app = Celery('core')
|
||||
app = Celery('archivist')
|
||||
|
||||
# Using a string here means the worker doesn't have to serialize
|
||||
# the configuration object to child processes.
|
||||
|
|
|
@ -4,7 +4,7 @@ services:
|
|||
django:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
dockerfile: Dockerfile-Dev
|
||||
args:
|
||||
- USER_ID=1000
|
||||
image: git.aroy-art.com/aroy/gallery-archivist:dev
|
||||
|
@ -31,7 +31,7 @@ services:
|
|||
#container_name: celery_worker
|
||||
command: >
|
||||
sh -c "cd archivist
|
||||
&& celery -A core worker -l INFO"
|
||||
&& celery -A archivist worker -l INFO"
|
||||
volumes:
|
||||
- .:/app/
|
||||
environment:
|
||||
|
@ -43,11 +43,10 @@ services:
|
|||
- redis
|
||||
|
||||
celery-beat:
|
||||
#build: .
|
||||
image: git.aroy-art.com/aroy/gallery-archivist:dev
|
||||
command: >
|
||||
sh -c "cd archivist
|
||||
&& celery -A core beat -l INFO"
|
||||
&& celery -A archivist beat -l INFO"
|
||||
volumes:
|
||||
- .:/app/
|
||||
environment:
|
||||
|
@ -58,5 +57,22 @@ services:
|
|||
- django
|
||||
- redis
|
||||
|
||||
flower:
|
||||
image: git.aroy-art.com/aroy/gallery-archivist:dev
|
||||
command: >
|
||||
sh -c "cd archivist
|
||||
&& celery -A archivist flower"
|
||||
volumes:
|
||||
- .:/app/
|
||||
environment:
|
||||
- DEBUG=1
|
||||
- CELERY_BROKER=redis://redis:6379/0
|
||||
ports:
|
||||
- 5555:5555
|
||||
depends_on:
|
||||
- django
|
||||
- redis
|
||||
|
||||
|
||||
redis:
|
||||
image: "redis:alpine"
|
||||
|
|
Loading…
Reference in a new issue