From cbe777b8fc459bbdb9b4142f98d7843e40938e50 Mon Sep 17 00:00:00 2001 From: Jonathan Karlsen Date: Wed, 24 Apr 2024 10:06:47 +0200 Subject: [PATCH] Add DeprecationWarning for TORQUE OPTION `QUEUE_QUERY_TIMEOUT` This commit adds a deprecation warning for using `TORQUE QUEUE_OPTION QUEUE_QUERY_TIMEOUT`, stating it will be ignored when using the scheduler. --- src/ert/config/parsing/config_schema_deprecations.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ert/config/parsing/config_schema_deprecations.py b/src/ert/config/parsing/config_schema_deprecations.py index fc84cf50b15..0acd8202e46 100644 --- a/src/ert/config/parsing/config_schema_deprecations.py +++ b/src/ert/config/parsing/config_schema_deprecations.py @@ -194,4 +194,12 @@ "The ERT default is to use /usr/bin/ssh.", check=lambda line: "LSF_RSH_CMD" in line, ), + DeprecationInfo( + keyword="QUEUE_OPTION", + message="QUEUE_QUERY_TIMEOUT as QUEUE_OPTION to the TORQUE system will be ignored " + "when using the scheduler, and it is not recommended to use this QUEUE_OPTION. " + "It has been used in the past to set the time ERT will wait before giving " + "up on hanging backend (TORQUE/PBS) when submitting jobs or job status querying.", + check=lambda line: "QUEUE_QUERY_TIMEOUT" in line, + ), ]