#781 Add graceful handling of no data ingestions - #784
Conversation
… in core and extras test modules.
…rations without failing the pipeline, and report the pipeline as a warning when `fail.if.no.data` is false.
|
Warning Review limit reached
Next review available in: 43 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
WalkthroughThe change updates eager-job handling for critical ChangesNo-data status handling
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related issues
Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@pramen/core/src/test/resources/test/config/integration_no_data_graceful.conf`:
- Line 20: Add the missing fail.if.no.data = false setting to the
integration_no_data_graceful configuration alongside fail.if.no.late.data, so
the scenario explicitly uses RunStatus.NoData(false) for critical ingestion.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: e97a064e-b0b1-4489-b114-4c9182a2223b
📒 Files selected for processing (6)
pramen/core/src/main/scala/za/co/absa/pramen/core/runner/jobrunner/ConcurrentJobRunnerImpl.scalapramen/core/src/main/scala/za/co/absa/pramen/core/state/PipelineStateImpl.scalapramen/core/src/test/resources/log4j2.propertiespramen/core/src/test/resources/test/config/integration_no_data_graceful.confpramen/core/src/test/scala/za/co/absa/pramen/core/integration/NoDataGracefulSuite.scalapramen/extras/src/test/resources/log4j2.properties
| pramen { | ||
| pipeline.name = "No data graceful test" | ||
|
|
||
| fail.if.no.late.data = false |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Set the no-data option used by this scenario.
Line 20 configures fail.if.no.late.data, not fail.if.no.data. Add fail.if.no.data = false so this integration scenario explicitly exercises RunStatus.NoData(false) for the critical ingestion.
Proposed fix
pramen {
+ fail.if.no.data = false
fail.if.no.late.data = false🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@pramen/core/src/test/resources/test/config/integration_no_data_graceful.conf`
at line 20, Add the missing fail.if.no.data = false setting to the
integration_no_data_graceful configuration alongside fail.if.no.late.data, so
the scenario explicitly uses RunStatus.NoData(false) for critical ingestion.
Unit Test Coverage
Files
|
…s to ensure it is always available and the thread is live.
…se `fail.if.no.data` instead of `fail.if.no.late.data`.
Overview
When an ingestion job is marked as critical, and 'fail.if.no.data' is false, it is considered a warning is there is no data, but the pipeline is stopped anyway.
Release Notes
Related
Closes #i81
Summary by CodeRabbit
Bug Fixes
Improvements