-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For source freshness, allow null error_after with non-null warning_after #3874
Comments
@lchoward Thanks for opening—totally fair thing to want. I think there's a bit of plumbing required to make this possible, but it is possible. Since I haven't seen too many folks asking for this, and since the "hacky" workaround ( Basically, we'd want to take the current merge/override behavior of the sources:
- name: top_level_source
freshness: # default freshness
warn_after: {count: 12, period: hour}
error_after: {count: 24, period: hour}
loaded_at_field: loaded_at
tables:
- name: src_a
freshness:
warn_after: {count: 6, period: hour}
# use the default error_after defined above
- name: src_b
freshness:
warn_after: {count: 6, period: hour}
error_after: {} # use the default error_after defined above
- name: src_c
freshness:
warn_after: {count: 6, period: hour}
error_after: null # override: disable error_after for this table
- name: src_d
freshness: null # override: disable freshness for this table In order to achieve that behavior, here's a rough overview of the steps involved:
I don't know if that's an exhaustive list. There's also tests, of course: unit tests that would need updating to handle the changed classes, plus integration tests for the net-new functionality. I do think this is doable, and fair game for a motivated contributor, so I'd welcome a PR for it—it's just not high on the team's priority list. |
Describe the feature
I have a few sources where it would be great to have:
warning_after
error_after
Today, if you leave
error_after
empty while specifying awarning_after
value or if you seterror_after: null
, theerror_after
value defaults to the parent value.Describe alternatives you've considered
Not the same, but a hacky workaround is to set a high
error_after
value that should never hit.Additional context
Who will this benefit?
I haven't seen too many people ask about this, but I'd imagine there must be many that would use this! Especially if highlighted in the docs as a use case.
Are you interested in contributing this feature?
No. But if I'm the only one asking for it, I'll reconsider lol.
The text was updated successfully, but these errors were encountered: