Skip to content

Commit

Permalink
Merge pull request #45 from JongbeomLee623/feature/ljb-deploy
Browse files Browse the repository at this point in the history
💚 Fix: celery.py docker-compose 재연결 활성화
  • Loading branch information
JongbeomLee623 authored Sep 25, 2024
2 parents cc3ac89 + 12c8822 commit 81eef9b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ services:
environment:
- CELERY_BROKER_URL=${CELERY_BROKER_URL}
- CELERY_RESULT_BACKEND=${CELERY_RESULT_BACKEND}
restart: on-failure
user: "1000:1000" # 비루트 사용자로 실행

web:
build: .
Expand Down
3 changes: 3 additions & 0 deletions linenow/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@
@app.task(bind=True)
def debug_task(self):
print(f'Request: {self.request!r}')

# Celery 관련 설정
app.conf.broker_connection_retry_on_startup = True # 브로커 연결 재시도 활성화

0 comments on commit 81eef9b

Please sign in to comment.