Coverage for frappe_manager / migration_manager / migration_constants.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-07-02 18:13 +0530

1""" 

2Migration manager constants. 

3 

4Centralized constants for timeouts, versions, and configuration values. 

5""" 

6 

7from frappe_manager.migration_manager.version import Version 

8 

9MINIMUM_SUPPORTED_VERSION = Version("0.18.0") 

10 

11DOCKER_COMPOSE_DOWN_TIMEOUT_SECONDS = 5 

12MIGRATION_BENCH_STOP_TIMEOUT_SECONDS = 100 

13 

14MIGRATION_WIKI_URL = "https://github.com/rtCamp/Frappe-Manager/wiki/Migrations#manual-migration-procedure" 

15 

16TIMESTAMP_COLLISION_RETRY_DELAY_SECONDS = 0.001 

17TIMESTAMP_COLLISION_RETRY_DELAY_MS = TIMESTAMP_COLLISION_RETRY_DELAY_SECONDS 

18 

19MIGRATION_CHECK_WHITELIST_COMMANDS: list[str] = [ 

20 "list", 

21 "self compose", 

22 "self update-images", 

23 "migrate", 

24] 

25 

26MIGRATION_CHECK_WHITELIST_BENCH_COMMANDS: list[str] = []