Commit 40f84e12 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fix cursor timeouts during re process cli command.

parent a54d4226
Pipeline #52429 passed with stages
in 20 minutes and 29 seconds
......@@ -156,6 +156,7 @@ def rm(ctx, uploads, with_coe_repo, skip_es, skip_mongo, skip_files):
def re_process(ctx, uploads, parallel: int):
_, uploads = query_uploads(ctx, uploads)
uploads_count = uploads.count()
uploads = list(uploads) # copy the whole mongo query set to avoid cursor timeouts
cv = threading.Condition()
threads: List[threading.Thread] = []
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment