This commit is contained in:
Alexey 2024-05-05 02:17:45 -03:00 committed by GitHub
commit 3750a14757
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 6 deletions

View File

@ -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.