Skip to content

Commit 8db3c26

Browse files
committed
CH-205 fix logs not returned for retried workflows
1 parent 47cbcd6 commit 8db3c26

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • libraries/cloudharness-common/cloudharness/infrastructure

libraries/cloudharness-common/cloudharness/infrastructure/k8s.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ def get_pod_logs(pod_name, namespace=namespace):
7676
except kubernetes.client.rest.ApiException as e:
7777
if e.status == 400:
7878
return f"Pod {pod_name} has not emitted logs yet..."
79+
elif 400 < e.status < 500:
80+
return str(e)
7981
raise Exception(e.status) from e
8082

8183

0 commit comments

Comments
 (0)