Skip to content

Commit 26231da

Browse files
committed
add django-celery-results, django-celery-beat
1 parent d547e21 commit 26231da

File tree

5 files changed

+74
-1
lines changed

5 files changed

+74
-1
lines changed

deploy_prod.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ cd pythonkr_backend
2727
export DJANGO_SETTINGS_MODULE="pythonkr_backend.settings.prod"
2828

2929
./manage.py migrate --no-input
30+
./manage.py manage.py migrate django_celery_results
3031
./manage.py tailwind install && ./manage.py tailwind build
3132
./manage.py loaddata fixtures.json
3233
./manage.py collectstatic --clear --noinput

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ dependencies = [
88
"beautifulsoup4>=4.13.3",
99
"celery>=5.5.2",
1010
"django>=5.1.7",
11+
"django-celery-beat>=2.8.1",
12+
"django-celery-results>=2.6.0",
1113
"django-tailwind[reload]>=3.8.0",
1214
"gunicorn>=23.0.0",
1315
"httpx>=0.28.1",

pythonkr_backend/pythonkr_backend/settings/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@
6464
"django_browser_reload",
6565
"pythonkr",
6666
"curation",
67+
"django_celery_results",
68+
"django_celery_beat",
6769
]
6870

6971
MIDDLEWARE = [

pythonkr_backend/pythonkr_backend/settings/prod.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,5 @@
7777
CELERY_TIMEZONE = "Asia/Seoul"
7878
CELERY_TASK_TRACK_STARTED = True
7979
CELERY_BROKER_URL = f"amqp://{CELERY_BROKER_USERNAME}:{CELERY_BROKER_PASSWORD}@localhost:5672/{CELERY_BROKER_VHOST}"
80-
CELERY_TASK_TIME_LIMIT = 30 * 60
80+
CELERY_TASK_TIME_LIMIT = 30 * 60
81+
CELERY_RESULT_BACKEND = 'django-db'

uv.lock

Lines changed: 67 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)