[cache] Cleaning up viz/cache logic (#9375)

Co-authored-by: John Bodley <john.bodley@airbnb.com>
This commit is contained in:
John Bodley
2020-03-26 09:22:06 -07:00
committed by GitHub
parent 5b07c8d229
commit 19da9042ff
6 changed files with 9 additions and 66 deletions

View File

@@ -213,6 +213,8 @@ class QueryContext:
df = query_result["df"]
if status != utils.QueryStatus.FAILED:
stats_logger.incr("loaded_from_source")
if not self.force:
stats_logger.incr("loaded_from_source_without_force")
is_loaded = True
except Exception as e: # pylint: disable=broad-except
logger.exception(e)