Added exception when abort fails
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pünkösd Marcell 2021-04-19 01:49:03 +02:00
parent 800ed14449
commit b62ebc85f9

View File

@ -212,7 +212,8 @@ class JobView(FlaskView):
raise
if r.status.phase not in ['Succeeded', 'Failed']:
requests.post(f"http://{r.status.pod_ip}:{self.CONTROLLER_HTTP_PORT}/abort")
r = requests.post(f"http://{r.status.pod_ip}:{self.CONTROLLER_HTTP_PORT}/abort")
r.raise_for_status()
self._k8s_wait_pod_phase(pod_name, ['Succeeded', 'Failed'])
try: