feat: Add script to ensure public tenant and its domain exist.

This commit is contained in:
2025-12-18 00:59:37 +03:00
parent 7b32cdcebf
commit 6c72126276
3 changed files with 69 additions and 60 deletions

View File

@@ -9,6 +9,7 @@ Example: shop1.inventory.by, shop2.inventory.by
"""
from pathlib import Path
import os
import environ
# Build paths inside the project like this: BASE_DIR / 'subdir'.
@@ -466,6 +467,9 @@ CELERY_TASK_DEFAULT_MAX_RETRIES = 3
CELERY_TASK_DEFAULT_RETRY_DELAY = 60 # Повторить через 60 секунд при ошибке
# Celery Beat Schedule (периодические задачи)
# Store schedule in /tmp to avoid PermissionError in Docker volumes
CELERY_BEAT_SCHEDULE_FILENAME = os.path.join('/tmp', 'celerybeat-schedule')
from celery.schedules import crontab
CELERY_BEAT_SCHEDULE = {