Skip to content

Commit 337b93c

Browse files
author
Richard Sun
committed
[QQC-2161] Use async batch creation when over 1000 global keys are provided
1 parent e983dfe commit 337b93c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

labelbox/schema/project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ def create_batch(
759759
consensus_settings = ConsensusSettings(**consensus_settings).dict(
760760
by_alias=True)
761761

762-
if len(dr_ids) >= 1_000:
762+
if row_count >= 1_000:
763763
return self._create_batch_async(name, dr_ids, global_keys, priority,
764764
consensus_settings)
765765
else:

0 commit comments

Comments
 (0)