Skip to content

Commit 951a925

Browse files
committed
[NEP-18090]: Adding en endpoint for warming up the dataset cache
Spec failure fixes
1 parent e061e67 commit 951a925

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/superset/dataset/warm_up_cache.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ def initialize(dashboard_id:)
1010

1111
def perform
1212
validate_dashboard_id
13+
response
14+
end
15+
16+
def response
1317
dataset_details = fetch_dataset_details(dashboard_id)
1418
dataset_details.each do |dataset|
1519
begin
@@ -18,7 +22,6 @@ def perform
1822
Rollbar.error(e.message)
1923
end
2024
end
21-
return "Dashboard warmed up"
2225
end
2326

2427
def validate_dashboard_id

0 commit comments

Comments
 (0)