From 337b93c3f176ee4c055c5ec0d75849ecc56493cb Mon Sep 17 00:00:00 2001 From: Richard Sun Date: Mon, 26 Jun 2023 12:37:18 -0700 Subject: [PATCH] [QQC-2161] Use async batch creation when over 1000 global keys are provided --- labelbox/schema/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labelbox/schema/project.py b/labelbox/schema/project.py index bb2928412..84a141aeb 100644 --- a/labelbox/schema/project.py +++ b/labelbox/schema/project.py @@ -759,7 +759,7 @@ def create_batch( consensus_settings = ConsensusSettings(**consensus_settings).dict( by_alias=True) - if len(dr_ids) >= 1_000: + if row_count >= 1_000: return self._create_batch_async(name, dr_ids, global_keys, priority, consensus_settings) else: