-
Notifications
You must be signed in to change notification settings - Fork 203
Description
Is your feature request related to a problem? Please describe.
Currently, we send the run results at the end of a dbt run, using the -days-back 1 filter to select data from the last day. Our pipeline starts at 1:30 AM CEST. Before daylight saving time (DST) adjustments, this worked fine because all test runs fell within the new day. However, after DST, tests that run at 1:30 AM local time are still considered part of "yesterday" in UTC. As a result, when the Slack summary is sent, tests that ran before 2:00 AM local time do not appear in the report.
Describe the solution you'd like
Add a timezone parameter to adjust the reporting window dynamically based on the local timezone. For example:
edr send-report -ch <slack_channel> -st <slack_token> -timezone <timezone>
This would allow us to select the report summary for the correct time window, ensuring all test runs are included, even after DST changes.
Describe alternatives you've considered
Before the DST change, this issue did not exist, so we do not have a viable workaround at the moment.
Additional context
If there's already a hack or temporary fix available, please let me know. However, we prefer not to modify the timestamps of our elementary tables (loading timestamps), as our data is currently loaded in UTC by default.
Would you be willing to contribute this feature?
Yes, I would be happy to contribute!