Repository navigation
Conversation
2288504 to
72498e6
Compare
potiuk
left a comment
There was a problem hiding this comment.
Adds a single log.info("No logs returned for instance_id %d", ...) before the early continue in SnowparkContainerJobOperator._log_container_output, so an empty SYSTEM$GET_SERVICE_LOGS result is visible in the task log instead of being silently skipped, and updates the one test that pinned the old silent behaviour.
Checked against main: the new line sits inside the existing if not response: block without touching anything around it, and the updated test_log_container_output_no_logs fails without the source change and passes with it. The helper is reached from the timeout, terminal-status and deferrable execute_complete paths, so the message appears wherever logs are collected.
Smaller observations
- The modified test is the intended change here (the old assertion pinned exactly the silent skip this PR removes), so no concern; noting it because the review guidelines ask reviewers to check that case explicitly.
- Design question, not a blocker: the new line is always INFO, including when the job ended FAILED or timed out (where existing output is logged at ERROR a few lines below). If you think a failed job with no output deserves a WARNING there, it would be a one-line tweak; fine as-is.
This review was drafted by an AI-assisted tool and
confirmed by an Apache Airflow maintainer. The maintainer
approving this PR has read the findings and signed off. If
something feels off, please reply on the PR and a maintainer
will follow up.More on how Apache Airflow handles maintainer review:
contributing-docs/05_pull_requests.rst.
In the
SnowparkContainerJobOperator, the_log_container_outputssilently skips when a job produces no logs. This might leave users thinking that the log collection process was skipped or didn't work as expected, when it did and there was just nothing to return. This PR adds a new line which logs that no logs were returned from the job. The existing test was updated to align with the new behavior.Was generative AI tooling used to co-author this PR?
{pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.