Переглянути джерело

fix: set default value to avoid initializing with empty value (#23220)

tags/1.7.2
ian woolf 3 місяці тому
джерело
коміт
a0a30bfdcc
Аккаунт користувача з таким Email не знайдено
1 змінених файлів з 4 додано та 4 видалено
  1. 4
    4
      api/schedule/queue_monitor_task.py

+ 4
- 4
api/schedule/queue_monitor_task.py Переглянути файл



redis_config = parse_url(dify_config.CELERY_BROKER_URL) redis_config = parse_url(dify_config.CELERY_BROKER_URL)
celery_redis = Redis( celery_redis = Redis(
host=redis_config["hostname"],
port=redis_config["port"],
password=redis_config["password"],
db=int(redis_config["virtual_host"]) if redis_config["virtual_host"] else 1,
host=redis_config.get("hostname") or "localhost",
port=redis_config.get("port") or 6379,
password=redis_config.get("password") or None,
db=int(redis_config.get("virtual_host")) if redis_config.get("virtual_host") else 1,
) )





Завантаження…
Відмінити
Зберегти