Merge "config-download timeout should KILL the process."

This commit is contained in:
Zuul 2020-03-24 08:47:46 +00:00 committed by Gerrit Code Review
commit f1c78097c3
1 changed files with 2 additions and 1 deletions

View File

@ -451,7 +451,8 @@ class AnsiblePlaybookAction(base.TripleOAction):
os.chmod(command_path, 0o750)
if self.command_timeout:
command = ['timeout', str(self.command_timeout)] + command
command = ['timeout', '-s', 'KILL',
str(self.command_timeout)] + command
if self.queue_name:
zaqar = self.get_messaging_client(context)