feat: Add script to ensure public tenant and its domain exist.
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user