コード例 #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)
コード例 #2
0
ファイル: xref_api.py プロジェクト: public-people/aleph
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)
コード例 #3
0
ファイル: xref_api.py プロジェクト: public-people/aleph
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)