File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -112,15 +112,18 @@ def setup_periodic_tasks(sender, **kwargs):
112
112
run_periodic_materialization ,
113
113
)
114
114
115
+ merge_tables = get_config_param ("MERGE_TABLES" )
115
116
periodic_tasks = {
116
117
"run_daily_periodic_materialization" : run_periodic_materialization .s (
117
- days_to_expire = 2
118
+ days_to_expire = 2 , merge_tables = merge_tables
118
119
),
119
120
"run_weekly_periodic_materialization" : run_periodic_materialization .s (
120
- days_to_expire = 7
121
+ days_to_expire = 7 , merge_tables = merge_tables
121
122
),
122
123
"run_lts_periodic_materialization" : run_periodic_materialization .s (
123
- days_to_expire = days_till_next_month (datetime .datetime .utcnow ())
124
+ days_to_expire = days_till_next_month (
125
+ datetime .datetime .utcnow (), merge_tables = merge_tables
126
+ )
124
127
),
125
128
"run_periodic_database_update" : run_periodic_database_update .s (),
126
129
"remove_expired_databases" : remove_expired_databases .s (
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ class BaseConfig:
39
39
INFO_API_VERSION = 2
40
40
MIN_DATABASES = 2
41
41
MAX_DATABASES = 2
42
+ MERGE_TABLES = True
42
43
AUTH_SERVICE_NAMESPACE = "datastack"
43
44
if os .environ .get ("DAF_CREDENTIALS" , None ) is not None :
44
45
with open (os .environ .get ("DAF_CREDENTIALS" ), "r" ) as f :
You can’t perform that action at this time.
0 commit comments