Add anchor time to persistence schedule (#22827)
* Add anchor time to persistence schedule Introduces a new public-setting persisted-model-refresh-anchor-time, representing the time to begin the refresh job. Defaults to midnight "00:00". Also peg the cron jobs to run in the first of: reporting timezone, system timezone, or UTC. This means that if a user needs the refresh to be anchored consistently to a certain time in a certain place, they need to update reporting timezone to match. * Add tests for anchor time * Force anchor-time to midnight if refresh hours is less than 6 * Need to check that hours was passed in * Fix ns lint * Add tests to ensure timezone is being set on trigger
Showing
- src/metabase/api/database.clj 4 additions, 2 deletionssrc/metabase/api/database.clj
- src/metabase/api/persist.clj 23 additions, 5 deletionssrc/metabase/api/persist.clj
- src/metabase/public_settings.clj 6 additions, 0 deletionssrc/metabase/public_settings.clj
- src/metabase/task/persist_refresh.clj 24 additions, 17 deletionssrc/metabase/task/persist_refresh.clj
- test/metabase/task/persist_refresh_test.clj 41 additions, 7 deletionstest/metabase/task/persist_refresh_test.clj
Please register or sign in to comment