mirror of https://github.com/apache/superset.git
Merge 5a034166b7
into f5843fe588
This commit is contained in:
commit
3750a14757
|
@ -327,12 +327,7 @@ class ChartDataRestApi(ChartRestApi):
|
|||
"""
|
||||
Execute command as an async query.
|
||||
"""
|
||||
# First, look for the chart query results in the cache.
|
||||
with contextlib.suppress(ChartDataCacheLoadError):
|
||||
result = command.run(force_cached=True)
|
||||
if result is not None:
|
||||
return self._send_chart_response(result)
|
||||
# Otherwise, kick off a background job to run the chart query.
|
||||
# Kick off a background job to run the chart query.
|
||||
# Clients will either poll or be notified of query completion,
|
||||
# at which point they will call the /data/<cache_key> endpoint
|
||||
# to retrieve the results.
|
||||
|
|
Loading…
Reference in New Issue