Skip to content

Loading…

Remove summary cache #76

Merged
merged 2 commits into from

1 participant

@jeads

The populate_summary_cache command is now removed from crontab.txt.

@jeads jeads merged commit 12cf0d9 into master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 21, 2012
  1. @jeads

    removed summary_cache dependencies

    jeads committed
  2. @jeads

    removed unused statement

    jeads committed
This page is out of date. Refresh to see the latest.
Showing with 0 additions and 40 deletions.
  1. +0 −5 crontab.txt
  2. +0 −35 datazilla/webapp/apps/datazilla/views.py
View
5 crontab.txt
@@ -2,11 +2,6 @@
PYTHON_ROOT=/usr/bin/
DATAZILLA_HOME=/usr/local/datazilla
-*/2 * * * * $PYTHON_ROOT/python $DATAZILLA_HOME/manage.py populate_summary_cache --build --cache --project stoneridge
-*/2 * * * * $PYTHON_ROOT/python $DATAZILLA_HOME/manage.py populate_summary_cache --build --cache --project b2g
-*/2 * * * * $PYTHON_ROOT/python $DATAZILLA_HOME/manage.py populate_summary_cache --build --cache --project jetperf
-*/2 * * * * $PYTHON_ROOT/python $DATAZILLA_HOME/manage.py populate_summary_cache --build --cache --project test
-
*/2 * * * * $PYTHON_ROOT/python $DATAZILLA_HOME/manage.py populate_test_collections --load --project stoneridge
*/2 * * * * $PYTHON_ROOT/python $DATAZILLA_HOME/manage.py populate_test_collections --load --project b2g
*/2 * * * * $PYTHON_ROOT/python $DATAZILLA_HOME/manage.py populate_test_collections --load --project jetperf
View
35 datazilla/webapp/apps/datazilla/views.py
@@ -279,41 +279,6 @@ def _get_test_run_summary(project, method, request, dm):
json_data = '{}'
- #Commenting the use of memcache out for now, the shared memcache
- #in production is failing to return the expected data. This works
- #in development so it's likely a configuration issue of some sort.
- """
- if product_ids and (not test_ids) and (not platform_ids):
-
- if len(product_ids) > 1:
- extend_list = { 'data':[], 'columns':[] }
- for id in product_ids:
- key = utils.get_summary_cache_key(project, str(id), time_key)
-
- compressed_json_data = cache.get(key)
-
- if compressed_json_data:
- json_data = zlib.decompress( compressed_json_data )
- data = json.loads( json_data )
- extend_list['data'].extend( data['data'] )
- extend_list['columns'] = data['columns']
-
- json_data = json.dumps(extend_list)
-
-
- else:
- key = utils.get_summary_cache_key(
- project,
- str(product_ids[0]),
- time_key,
- )
- compressed_json_data = cache.get(key)
-
- if compressed_json_data:
- json_data = zlib.decompress( compressed_json_data )
-
- else:
- """
table = dm.get_test_run_summary(time_ranges[time_key]['start'],
time_ranges[time_key]['stop'],
product_ids,
Something went wrong with that request. Please try again.