mirror of
https://github.com/ansible/awx.git
synced 2026-04-09 03:59:21 -02:30
Merge pull request #6294 from ryanpetrello/devel
remove a hook QE no longer uses for testing task execution
This commit is contained in:
@@ -583,15 +583,6 @@ class BaseTask(Task):
|
|||||||
'''
|
'''
|
||||||
logfile = stdout_handle
|
logfile = stdout_handle
|
||||||
logfile_pos = logfile.tell()
|
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()
|
global_timeout_setting_name = instance._global_timeout_setting()
|
||||||
if global_timeout_setting_name:
|
if global_timeout_setting_name:
|
||||||
global_timeout = getattr(settings, global_timeout_setting_name, 0)
|
global_timeout = getattr(settings, global_timeout_setting_name, 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user