diff --git a/dedal/utils/utils.py b/dedal/utils/utils.py index 9fc82ad520b4a22715c819d3ca11042b88b87c7f..de5529dcbc74a5dd2118da89d4c89d5f2f2ffead 100644 --- a/dedal/utils/utils.py +++ b/dedal/utils/utils.py @@ -30,7 +30,7 @@ def run_command(*args, logger=logging.getLogger(__name__), info_msg: str = '', e exception=None, **kwargs): try: logger.info(f'{info_msg}: args: {args}') - return subprocess.run(args, **kwargs) + return subprocess.run(args, **kwargs, timeout=10 * 60) except subprocess.CalledProcessError as e: if exception_msg is not None: logger.error(f"{exception_msg}: {e}")