6161 ProjectOverview ,
6262 ProjectOverviewDetailed ,
6363)
64- from labelbox .schema .queue_mode import QueueMode
6564from labelbox .schema .resource_tag import ResourceTag
6665from labelbox .schema .task import Task
6766from labelbox .schema .task_queue import TaskQueue
@@ -109,7 +108,6 @@ class Project(DbObject, Updateable, Deletable):
109108 created_at (datetime)
110109 setup_complete (datetime)
111110 last_activity_time (datetime)
112- queue_mode (string)
113111 auto_audit_number_of_labels (int)
114112 auto_audit_percentage (float)
115113 is_benchmark_enabled (bool)
@@ -132,7 +130,6 @@ class Project(DbObject, Updateable, Deletable):
132130 created_at = Field .DateTime ("created_at" )
133131 setup_complete = Field .DateTime ("setup_complete" )
134132 last_activity_time = Field .DateTime ("last_activity_time" )
135- queue_mode = Field .Enum (QueueMode , "queue_mode" )
136133 auto_audit_number_of_labels = Field .Int ("auto_audit_number_of_labels" )
137134 auto_audit_percentage = Field .Float ("auto_audit_percentage" )
138135 # Bind data_type and allowedMediaTYpe using the GraphQL type MediaType
@@ -734,9 +731,6 @@ def create_batch(
734731 Raises:
735732 lbox.exceptions.ValueError if a project is not batch mode, if the project is auto data generation, if the batch exceeds 100k data rows
736733 """
737- # @TODO: make this automatic?
738- if self .queue_mode != QueueMode .Batch :
739- raise ValueError ("Project must be in batch mode" )
740734
741735 if self .is_auto_data_generation ():
742736 raise ValueError (
@@ -816,9 +810,6 @@ def create_batches(
816810 Returns: a task for the created batches
817811 """
818812
819- if self .queue_mode != QueueMode .Batch :
820- raise ValueError ("Project must be in batch mode" )
821-
822813 dr_ids = []
823814 if data_rows is not None :
824815 for dr in data_rows :
@@ -901,9 +892,6 @@ def create_batches_from_dataset(
901892 Returns: a task for the created batches
902893 """
903894
904- if self .queue_mode != QueueMode .Batch :
905- raise ValueError ("Project must be in batch mode" )
906-
907895 if consensus_settings :
908896 consensus_settings = ConsensusSettings (
909897 ** consensus_settings
0 commit comments