Skip to content

Commit 5764aac

Browse files
author
Val Brodsky
committed
Remove 150K data rows limitation
1 parent e0d458c commit 5764aac

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

libs/labelbox/src/labelbox/schema/dataset.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -606,11 +606,6 @@ def upsert_data_rows(
606606
>>> ])
607607
>>> task.wait_till_done()
608608
"""
609-
if len(items) > MAX_DATAROW_PER_API_OPERATION:
610-
raise MalformedQueryException(
611-
f"Cannot upsert more than {MAX_DATAROW_PER_API_OPERATION} DataRows per function call."
612-
)
613-
614609
specs = DataRowUpsertItem.build(self.uid, items)
615610
return self._exec_upsert_data_rows(specs, file_upload_thread_count)
616611

libs/labelbox/tests/data/annotation_import/test_model_run.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ def test_model_run_split_assignment_by_data_row_ids(
174174
data_rows = dataset.create_data_rows([{
175175
"row_data": image_url
176176
} for _ in range(n_data_rows)])
177+
data_rows.wait_till_done()
177178
data_row_ids = [data_row['id'] for data_row in data_rows.result]
178179
configured_project_with_one_data_row._wait_until_data_rows_are_processed(
179180
data_row_ids=data_row_ids)

libs/labelbox/tests/integration/test_task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def test_task_success_json(dataset, image_url, snapshot):
6262
def test_task_success_label_export(client, configured_project_with_label):
6363
project, _, _, _ = configured_project_with_label
6464
# TODO: Move to export_v2
65-
res = project.export_labels()
65+
project.export_labels()
6666
user = client.get_user()
6767
task = None
6868
for task in user.created_tasks():

0 commit comments

Comments
 (0)