Added exception when abort fails
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
800ed14449
commit
b62ebc85f9
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user