feat(celery): schedule weekly updates and run startup refresh
Some checks failed
CI/CD Pipeline / Run Tests (push) Successful in 1m41s
CI/CD Pipeline / Telegram Notify Success (push) Has been cancelled
CI/CD Pipeline / Code Quality Checks (push) Has been cancelled
CI/CD Pipeline / Code Quality Checks (pull_request) Successful in 1m31s
CI/CD Pipeline / Telegram Notify Success (pull_request) Has been cancelled
CI/CD Pipeline / Run Tests (pull_request) Has been cancelled

This commit is contained in:
2026-03-20 11:14:03 +01:00
parent c8bdc282de
commit b8e3f0a5d3
4 changed files with 134 additions and 8 deletions

View File

@@ -209,6 +209,12 @@ BACKUP_EXPORT_DIRECTORY = os.getenv(
CELERY_BROKER_CONNECTION_RETRY = True
CELERY_BROKER_CONNECTION_RETRY_ON_STARTUP = True
# Celery: автообновление источников при старте worker.
CELERY_STARTUP_REFRESH_ENABLED = True
CELERY_STARTUP_REFRESH_DELAY_SECONDS = 30
CELERY_STARTUP_REFRESH_LOCK_KEY = "celery:startup:parse_all_sources:lock"
CELERY_STARTUP_REFRESH_LOCK_TTL_SECONDS = 3600
# Password validation
AUTH_PASSWORD_VALIDATORS = [