remove data assertion from migration script to speed up
This commit is contained in:
@ -313,7 +313,7 @@ async def main():
|
|||||||
ES_USERNAME, ES_PASSWORD), retry_on_timeout=True)
|
ES_USERNAME, ES_PASSWORD), retry_on_timeout=True)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
updated_user_ids = []
|
# updated_user_ids = []
|
||||||
|
|
||||||
print(await es_client.info())
|
print(await es_client.info())
|
||||||
|
|
||||||
@ -454,8 +454,8 @@ async def main():
|
|||||||
library_items.append(library_item)
|
library_items.append(library_item)
|
||||||
library_items_original_ids.append(doc_id)
|
library_items_original_ids.append(doc_id)
|
||||||
|
|
||||||
if user_id not in updated_user_ids:
|
# if user_id not in updated_user_ids:
|
||||||
updated_user_ids.append(user_id)
|
# updated_user_ids.append(user_id)
|
||||||
|
|
||||||
# convert labels to postgres format
|
# convert labels to postgres format
|
||||||
if 'labels' in source:
|
if 'labels' in source:
|
||||||
@ -551,7 +551,7 @@ async def main():
|
|||||||
|
|
||||||
print('Migration complete', END_TIME)
|
print('Migration complete', END_TIME)
|
||||||
|
|
||||||
await assert_data(db_conn, es_client, updated_user_ids, uploaded_files)
|
# await assert_data(db_conn, es_client, updated_user_ids, uploaded_files)
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
print('Migration error', err)
|
print('Migration error', err)
|
||||||
finally:
|
finally:
|
||||||
|
|||||||
Reference in New Issue
Block a user