mirror of
https://github.com/langgenius/dify.git
synced 2026-03-04 07:16:20 +08:00
[autofix.ci] apply automated fixes
This commit is contained in:
@ -797,7 +797,9 @@ def upgrade_db():
|
||||
lock.release()
|
||||
except LockNotOwnedError:
|
||||
status = "successful" if migration_succeeded else "failed"
|
||||
logger.warning("DB migration lock not owned on release after %s migration (likely expired); ignoring.", status)
|
||||
logger.warning(
|
||||
"DB migration lock not owned on release after %s migration (likely expired); ignoring.", status
|
||||
)
|
||||
except RedisError:
|
||||
status = "successful" if migration_succeeded else "failed"
|
||||
logger.warning(
|
||||
|
||||
@ -32,4 +32,3 @@ class DeploymentConfig(BaseSettings):
|
||||
description="Deployment environment (e.g., 'PRODUCTION', 'DEVELOPMENT'), default to PRODUCTION",
|
||||
default="PRODUCTION",
|
||||
)
|
||||
|
||||
|
||||
@ -141,4 +141,3 @@ def test_upgrade_db_ignores_reacquire_errors(monkeypatch, capsys):
|
||||
|
||||
assert exit_code == 0
|
||||
assert lock.reacquire.call_count >= 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user