Skip to main content

Module maintenance

Module maintenance 

Source
Expand description

implementation of maintenance daemon keeping the lakehouse updated

Structs§

EveryDayTask
task running once a day to materialize older partitions
EveryHourTask
task running once an hour to materialize recent partitions
EveryMinuteTask
task running once a minute to materialize recent partitions
EverySecondTask
task running once a second to materialize newest partitions

Constants§

DEFAULT_SECONDS_MATERIALIZATION_CONCURRENCY
SECONDS_MATERIALIZATION_CONCURRENCY_ENV
Environment variable bounding how many views of one update group the every-second pass materializes at once.

Functions§

daemon
Starts the maintenance daemon, which runs various scheduled tasks.
get_global_views_with_update_group
Retrieves a list of global views that have an associated update group.
materialize_all_views
Materializes all views within a given time range.
run_tasks_forever
Runs a collection of CronTasks until shutdown fires.
run_update_groups
Runs run over items, grouped by contiguous runs of equal group_of, with at most concurrency items in flight. Each group starts after the previous one has fully finished, and gets a fresh fetch_group_context() result.