We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ddfbcf commit a83f4b3Copy full SHA for a83f4b3
zorg/buildbot/builders/annotated/premerge/dispatch_job.py
@@ -248,7 +248,14 @@ def main(commit_sha: str, platform: str):
248
logging.error(f"Failed to get logs from the pod: {log_exception}")
249
break
250
time.sleep(SECONDS_QUERY_LOGS_EVERY)
251
+ pod_status = get_pod_status(pod_name, namespace, v1_api)
252
v1_api.delete_namespaced_pod(pod_name, namespace)
253
+ if pod_status == "Succeeded":
254
+ print("Job Succeeded.")
255
+ sys.exit(0)
256
+ else:
257
+ print("Job Failed.")
258
+ sys.exit(1)
259
260
261
if __name__ == "__main__":
0 commit comments