Increase Test Planner execution engine AFE timeout

Signed-off-by: James Ren <[email protected]>

--- autotest/frontend/planner/rpc_utils.py      2010-04-06 15:56:40.000000000 
-0700
+++ autotest/frontend/planner/rpc_utils.py      2010-04-07 15:28:26.000000000 
-0700
@@ -3,7 +3,7 @@
 from autotest_lib.frontend.afe import models as afe_models, model_logic
 from autotest_lib.frontend.planner import models, model_attributes
 from autotest_lib.frontend.planner import failure_actions
-from autotest_lib.client.common_lib import global_config, utils
+from autotest_lib.client.common_lib import global_config, utils, global_config
 
 
 PLANNER_LABEL_PREFIX = 'planner_'
@@ -36,6 +36,8 @@
     """
     Takes the necessary steps to start a test plan in Autotest
     """
+    timeout = global_config.global_config.get_config_value(
+            'PLANNER', 'execution_engine_timeout')
     keyvals = {'server': SERVER,
                'plan_id': plan.id,
                'label_name': label.name}
@@ -44,6 +46,7 @@
                'control_file': _get_execution_engine_control(),
                'control_type': afe_models.Job.ControlType.SERVER,
                'synch_count': None,
+               'timeout': timeout,
                'run_verify': False,
                'reboot_before': False,
                'reboot_after': False,
--- autotest/global_config.ini  2010-04-07 15:28:26.000000000 -0700
+++ autotest/global_config.ini  2010-04-07 15:28:26.000000000 -0700
@@ -24,6 +24,10 @@
 user: autotest
 password: please_set_this_password
 
+[PLANNER]
+# 3 months
+execution_engine_timeout: 2160
+
 [AUTOSERV]
 # Autotest potential install paths
 client_autodir_paths: /home/autotest
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to