Skip to content

Commit

Permalink
Increase lock timeout to 180s (ansible#2514)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea committed Oct 4, 2022
1 parent 7e3b389 commit 07e3a51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ansiblelint/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 07e3a51

Please sign in to comment.