Skip to content

Commit

Permalink
feat(Pipelines): append reason to stdout when
Browse files Browse the repository at this point in the history
  • Loading branch information
cheikhgwane committed Aug 3, 2023
1 parent 5b9e9a3 commit fe76bc5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hexa/pipelines/management/commands/pipelines_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ def run_pipeline_kube(run: PipelineRun, env_var: dict):
stdout = ""
# check termination reason
if remote_pod.status.reason == PodTerminationReason.DeadlineExceeded.value:
stdout = f"Timeout killed run {run.pipeline.name} #{run.id}"
reason = f"Timeout killed run {run.pipeline.name} #{run.id}"
stdout = "\n".join([stdout, reason])

# delete terminated pod
try:
Expand Down

0 comments on commit fe76bc5

Please sign in to comment.