Skip to content
Discussion options

You must be logged in to vote

From the current provider source, your observation looks like a real deferrable-path difference.

In the non-deferrable path, KubernetesJobOperator waits for the job, fetches requested container logs when get_logs is enabled, and only then checks is_job_failed().

In the deferrable path, the trigger waits for the job and returns an event with status = "error" when the job failed. Then execute_complete() immediately raises on that error status before it reaches the later if self.get_logs: block that would fetch pod logs.

So I would not treat this as user error. The practical workarounds are to run this operator with deferrable=False when failure logs are important, or fetch the pod logs sepa…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by atulgandhi1137
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants