Skip to content

Commit

Permalink
Revert "feat: celery框架导入"
Browse files Browse the repository at this point in the history
This reverts commit 0eabae9.
  • Loading branch information
LittleRewriter committed Aug 22, 2024
1 parent 0eabae9 commit 9b2805b
Show file tree
Hide file tree
Showing 10 changed files with 3 additions and 30,851 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ share/python-wheels/
.installed.cfg
*.egg
MANIFEST
.vscode/

# PyInstaller
# Usually these files are written by a python script from a template
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"python.analysis.typeCheckingMode": "basic",
"mypy.dmypyExecutable": "${workspaceFolder}/.venv/Scripts/dmypy.exe"
"mypy.dmypyExecutable": "${workspaceFolder}/.venv/Scripts/dmypy.exe",
}
31 changes: 0 additions & 31 deletions contest/contest/celery.py

This file was deleted.

11 changes: 0 additions & 11 deletions contest/contest/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ def _debug_only(*args) -> tuple:
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.staticfiles",
'django_celery_beat',
"django_cas_ng",
"tailwind", # 因为含模板 tag,即使无需构建前端也必要
"theme", # 提供 static,开发时由 Django 负责,部署时需 collectstatic,都需要
Expand Down Expand Up @@ -245,13 +244,3 @@ def _debug_only(*args) -> tuple:
datetime(2023, 9, 1, tzinfo=ZoneInfo(TIME_ZONE)),
datetime(2023, 9, 3, tzinfo=ZoneInfo(TIME_ZONE)),
)

if DEBUG:
CELERY_BROKER_URL = 'redis://127.0.0.1:6379/0'
else:
CELERY_BROKER_URL = 'redis://localhost:6379/0' # Modify in Release

CELERY_TIMEZONE = TIME_ZONE
# DJANGO_CELERY_BEAT_TZ_AWARE = False
CELERY_BEAT_SCHEDULER = 'django_celery_beat.schedulers:DatabaseScheduler'
# CELERY_ENABLE_UTC = False
10 changes: 0 additions & 10 deletions contest/contest/tasks.py

This file was deleted.

Loading

0 comments on commit 9b2805b

Please sign in to comment.