Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove max chunk size constant #376

Merged
merged 1 commit into from
Jul 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lib/idseq_utils/idseq_utils/batch_run_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
)
log = logging.getLogger(__name__)

MAX_CHUNKS_IN_FLIGHT = 30 # TODO: remove this constant, currently does nothing since we have at most 30 index chunks

# mitigation for TooManyRequestExceptions
config = Config(
Expand Down Expand Up @@ -322,7 +321,7 @@ def run_alignment(
]
for chunk_id, db_chunk in enumerate(_db_chunks(db_bucket, db_prefix))
)
with Pool(MAX_CHUNKS_IN_FLIGHT) as p:
with Pool(len(chunks)) as p:
p.starmap(_run_chunk, chunks)
run(["s3parcp", "--recursive", chunk_dir, "chunks"], check=True)
if os.path.exists(os.path.join("chunks", "cache")):
Expand Down
Loading