def process(id): collection = get_db_collection(id, request.authz.WRITE) # re-process the documents process_documents.delay(collection_id=collection.id) update_collection(collection) return jsonify({'status': 'accepted'}, status=202)
def process(id): collection = get_db_collection(id, request.authz.WRITE) # re-process the documents process_documents.delay(collection_id=collection.id) return ('', 204)
def process(collection_id): collection = get_db_collection(collection_id, request.authz.WRITE) # re-process the documents process_documents.delay(collection_id=collection.id) return ('', 204)