Example #1
0
def start_refresh():
    response = cache_utils.refresh_request_handler(term())
    return tolerant_jsonify(response,
                            status=500 if 'error' in response else 200)
Example #2
0
def start_import_refresh():
    return tolerant_jsonify(cache_utils.refresh_request_handler(term()))
Example #3
0
def refresh_external_data():
    from boac.api import cache_utils
    from boac.lib import berkeley
    cache_utils.refresh_request_handler(berkeley.current_term_id(), load_only=False)
Example #4
0
def start_load_only():
    """Lets us load still-uncached data without having to erase any data which was already cached."""
    job_state = cache_utils.refresh_request_handler(term(), load_only=True)
    return tolerant_jsonify(job_state)
Example #5
0
def refresh_external_data():
    from boac.api import cache_utils
    from boac.merged.sis_terms import current_term_id
    cache_utils.refresh_request_handler(current_term_id())