Example #1
0
def process(slug):
    authz.require(authz.source_write(slug))
    source = obj_or_404(Source.by_slug(slug))
    process_collection.delay(source.slug)
    return jsonify({'status': 'ok'})
Example #2
0
def process(collection_name, force=False):
    """ Index all documents in the given collection. """
    process_collection.delay(collection_name, overwrite=force)
Example #3
0
def process(collection_name, force=False):
    """ Index all documents in the given collection. """
    process_collection.delay(collection_name, overwrite=force)
Example #4
0
def process(slug):
    authz.require(authz.source_write(slug))
    source = obj_or_404(Source.by_slug(slug))
    process_collection.delay(source.slug)
    return jsonify({'status': 'ok'})