From 5a34f3a1a405a256e6988ea3342f3b9fb2d92603 Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Thu, 18 May 2017 15:59:36 -0400 Subject: [PATCH] remove a hook QE no longer uses for testing task execution --- awx/main/tasks.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index 7cab15ecc9..cb8da9633b 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -583,15 +583,6 @@ class BaseTask(Task): ''' logfile = stdout_handle logfile_pos = logfile.tell() - if hasattr(instance, "extra_vars_dict") and "PEXPECT_SLEEP" in instance.extra_vars_dict: - pexpect_sleep = int(instance.extra_vars_dict['PEXPECT_SLEEP']) - elif 'PEXPECT_SLEEP' in os.environ: - pexpect_sleep = int(os.environ['PEXPECT_SLEEP']) - else: - pexpect_sleep = None - if pexpect_sleep is not None: - logger.info("Suspending Job Execution for QA Work") - time.sleep(pexpect_sleep) global_timeout_setting_name = instance._global_timeout_setting() if global_timeout_setting_name: global_timeout = getattr(settings, global_timeout_setting_name, 0)