Exemplo n.º 1
0
def generate_matches(collection_id, other_id):
    collection = get_db_collection(collection_id, request.authz.WRITE)
    other = get_db_collection(other_id)
    process_xref.apply_async([collection.id, other.id],
                             queue=USER_QUEUE,
                             routing_key=USER_ROUTING_KEY)
    return jsonify({'status': 'accepted'}, status=202)
Exemplo n.º 2
0
def generate_matches(collection_id, other_id):
    collection = get_db_collection(collection_id, request.authz.WRITE)
    other = get_db_collection(other_id)
    process_xref.apply_async([collection.id, other.id], priority=6)
    return jsonify({'status': 'accepted'}, status=202)
Exemplo n.º 3
0
def generate_summary(collection_id):
    collection = get_db_collection(collection_id, request.authz.WRITE)
    process_xref.apply_async([collection.id], priority=5)
    return jsonify({'status': 'accepted'}, status=202)