Increase Test Planner execution engine AFE timeout

Signed-off-by: James Ren <jamesren@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@4393 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/frontend/planner/rpc_utils.py b/frontend/planner/rpc_utils.py
index 78f8e64..6312da5 100644
--- a/frontend/planner/rpc_utils.py
+++ b/frontend/planner/rpc_utils.py
@@ -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,