Skip to content

Commit 4a69dcb

Browse files
committed
Enable celery logs
1 parent ba8f721 commit 4a69dcb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ COPY --chown=nonroot:nonroot grpc_app ./grpc_app
8989
# Run CMD using array syntax, so it's uses `exec` and runs as PID1
9090
CMD ["opentelemetry-instrument", "python3", "-m", "grpc_app"]
9191

92-
# Copy the grpc python package and requirements from relevant builder
92+
# Copy the celery python package and requirements from relevant builder
9393
FROM base_app as celery_app
9494
COPY --from=celery_builder /poetryvenvs /poetryvenvs
9595
COPY --chown=nonroot:nonroot celery_worker ./celery_worker
9696
# Run CMD using array syntax, so it's uses `exec` and runs as PID1
97-
CMD ["opentelemetry-instrument", "celery", "-A", "celery_worker:app", "worker", "--events"]
97+
CMD ["opentelemetry-instrument", "celery", "-A", "celery_worker:app", "worker", "-l", "INFO"]

docker-compose.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ services:
2424
- celery_worker:app
2525
- worker
2626
- --beat
27+
- -l
28+
- INFO
2729

2830
dev:
2931
build:

0 commit comments

Comments
 (0)