Skip to content

Commit

Permalink
Keep last log line if no-logs (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
Martynas Asipauskas authored and GitHub Enterprise committed Sep 4, 2024
1 parent 1b87887 commit baafa71
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions third_party/airflow/armada/operators/armada.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,10 @@ def _check_job_status_and_fetch_logs(self) -> None:
container=self.container_logs,
since_time=self.job_context.last_log_time,
)
self.job_context = dataclasses.replace(
self.job_context, last_log_time=last_log_time
)
if last_log_time:
self.job_context = dataclasses.replace(
self.job_context, last_log_time=last_log_time
)
except Exception as e:
self.log.warning(f"Error fetching logs {e}")

Expand Down

0 comments on commit baafa71

Please sign in to comment.