dify/api/tests
L1nSn0w afdd5b6c86 feat(api): implement heartbeat mechanism for database migration lock
- Added a heartbeat function to renew the Redis lock during database migrations, preventing long blockages from crashed processes.
- Updated the upgrade_db command to utilize the new locking mechanism with a configurable TTL.
- Removed the deprecated MIGRATION_LOCK_TTL from DeploymentConfig and related files.
- Enhanced unit tests to cover the new lock renewal behavior and error handling during migrations.

(cherry picked from commit a3331c622435f9f215b95f6b0261f43ae56a9d9c)
2026-02-14 16:28:38 +08:00
..
fixtures/workflow fix(api): defer streaming response until referenced variables are updated (#30832) 2026-01-12 16:23:18 +08:00
integration_tests fix: fix delete_draft_variables_batch cycle forever (#31934) 2026-02-04 19:42:50 +08:00
test_containers_integration_tests refactor: document_indexing_sync_task split db session (#32129) 2026-02-09 17:16:17 +08:00
unit_tests feat(api): implement heartbeat mechanism for database migration lock 2026-02-14 16:28:38 +08:00
__init__.py Initial commit 2023-05-15 08:51:32 +08:00