From 07e3a512611349e928c87af58d787aeb7e3f7e19 Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Thu, 29 Sep 2022 14:34:14 +0100 Subject: [PATCH] Increase lock timeout to 180s (#2514) --- src/ansiblelint/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ansiblelint/__main__.py b/src/ansiblelint/__main__.py index 731240a5abc..4ce6c7b34b7 100755 --- a/src/ansiblelint/__main__.py +++ b/src/ansiblelint/__main__.py @@ -115,7 +115,7 @@ def initialize_options(arguments: list[str] | None = None) -> None: if not options.offline: options.cache_dir_lock = FileLock(f"{options.cache_dir}/.lock") try: - options.cache_dir_lock.acquire(timeout=120) + options.cache_dir_lock.acquire(timeout=180) except Timeout: _logger.error( "Timeout waiting for another instance of ansible-lint to release the lock."