Skip to content

Commit

Permalink
Adjusted per-request item limit to 10
Browse files Browse the repository at this point in the history
  • Loading branch information
JBWilkie committed Jul 19, 2024
1 parent fd238ce commit 1ffa197
Showing 1 changed file with 4 additions and 4 deletions.
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 100 items in a single request
chunk_size = 100
# 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 100 items in a single request
chunk_size = 100
# 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

0 comments on commit 1ffa197

Please sign in to comment.