Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
master resolve bug causing pod logs to not be printed
Signed-off-by: James Crabtree <james.crabtree@sailpoint.com>
  • Loading branch information
james-crabtree-sp committed Oct 25, 2023
commit 938b9030e3e78078e587c0261cde01600a146495
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,6 @@ def _await_path_materialization(
f"(of {total_pods}) complete with status {job.status()}"
)
except BaseException as e:
if self.batch_engine_config.print_pod_logs_on_failure:
self._print_pod_logs(job.job_id(), feature_view, batch_start)

logger.info(f"Deleting job {job.job_id()}")
try:
self.batch_v1.delete_namespaced_job(job.job_id(), self.namespace)
Expand All @@ -268,6 +265,12 @@ def _await_path_materialization(
f"Could not delete configmap due to API Error: {ae.body}"
)

if (
job.status() == MaterializationJobStatus.ERROR
and self.batch_engine_config.print_pod_logs_on_failure
):
self._print_pod_logs(job.job_id(), feature_view, batch_start)

return job

def _print_pod_logs(self, job_id, feature_view, offset=0):
Expand Down