1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-30 22:21:13 +03:00

remove a hook QE no longer uses for testing task execution

This commit is contained in:
Ryan Petrello 2017-05-18 15:59:36 -04:00
parent 1946730d8c
commit 5a34f3a1a4

View File

@ -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)