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

[DAR-2463][External] Adjusted maximum number of items that can be registered in a single request #857

Merged
merged 4 commits into from
Jul 19, 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
8 changes: 4 additions & 4 deletions darwin/dataset/remote_dataset_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,8 +702,8 @@ def register_single_slotted(
item["extract_views"] = "true"
items.append(item)

# Do not register more than 500 items in a single request
chunk_size = 500
# Do not register more than 10 items in a single request
chunk_size = 10
chunked_items = chunk_items(items, chunk_size)
print(f"Registering {len(items)} items in chunks of {chunk_size} items...")
results = {
Expand Down Expand Up @@ -800,8 +800,8 @@ def register_multi_slotted(
}
)

# Do not register more than 500 items in a single request
chunk_size = 500
# Do not register more than 10 items in a single request
chunk_size = 10
chunked_items = chunk_items(items, chunk_size)
print(f"Registering {len(items)} items in chunks of {chunk_size} items...")
results = {
Expand Down