Change: Celery app name

This commit is contained in:
Aroy-Art 2024-03-20 22:37:54 +01:00
parent 8d96e15bed
commit b0161d0d23
Signed by: Aroy
GPG key ID: DB9689E9391DD156
2 changed files with 21 additions and 5 deletions

View file

@ -7,7 +7,7 @@ from celery import Celery
# Set the default Django settings module for the 'celery' program. # Set the default Django settings module for the 'celery' program.
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings') 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 # Using a string here means the worker doesn't have to serialize
# the configuration object to child processes. # the configuration object to child processes.

View file

@ -4,7 +4,7 @@ services:
django: django:
build: build:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile-Dev
args: args:
- USER_ID=1000 - USER_ID=1000
image: git.aroy-art.com/aroy/gallery-archivist:dev image: git.aroy-art.com/aroy/gallery-archivist:dev
@ -31,7 +31,7 @@ services:
#container_name: celery_worker #container_name: celery_worker
command: > command: >
sh -c "cd archivist sh -c "cd archivist
&& celery -A core worker -l INFO" && celery -A archivist worker -l INFO"
volumes: volumes:
- .:/app/ - .:/app/
environment: environment:
@ -43,11 +43,10 @@ services:
- redis - redis
celery-beat: celery-beat:
#build: .
image: git.aroy-art.com/aroy/gallery-archivist:dev image: git.aroy-art.com/aroy/gallery-archivist:dev
command: > command: >
sh -c "cd archivist sh -c "cd archivist
&& celery -A core beat -l INFO" && celery -A archivist beat -l INFO"
volumes: volumes:
- .:/app/ - .:/app/
environment: environment:
@ -58,5 +57,22 @@ services:
- django - django
- redis - 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: redis:
image: "redis:alpine" image: "redis:alpine"