From 5fd4c1a1b556b9d6dd6a09b33cdcb434c716d66f Mon Sep 17 00:00:00 2001 From: Peter Hessey Date: Mon, 21 Nov 2022 16:24:58 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20maximum=20run=20duration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- submit_for_inference.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submit_for_inference.py b/submit_for_inference.py index ed74d31..72b89d2 100644 --- a/submit_for_inference.py +++ b/submit_for_inference.py @@ -55,7 +55,7 @@ def create_run_config(azure_config: AzureConfig, entry_script_relative_path = source_config.entry_script.relative_to(source_config.root_folder).as_posix() logging.info(f"Entry script {entry_script_relative_path} ({source_config.entry_script} " f"relative to source directory {source_config.root_folder})") - max_run_duration = None + max_run_duration = 43200 # 12 hours in seconds workspace = azure_config.get_workspace() run_config = RunConfiguration(script=entry_script_relative_path, arguments=source_config.script_params) env = Environment.get(azure_config.get_workspace(), name=environment_name, version=ENVIRONMENT_VERSION)