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 (
742736 self .is_auto_data_generation () and not self .is_chat_evaluation ()
@@ -818,9 +812,6 @@ def create_batches(
818812 Returns: a task for the created batches
819813 """
820814
821- if self .queue_mode != QueueMode .Batch :
822- raise ValueError ("Project must be in batch mode" )
823-
824815 dr_ids = []
825816 if data_rows is not None :
826817 for dr in data_rows :
@@ -903,9 +894,6 @@ def create_batches_from_dataset(
903894 Returns: a task for the created batches
904895 """
905896
906- if self .queue_mode != QueueMode .Batch :
907- raise ValueError ("Project must be in batch mode" )
908-
909897 if consensus_settings :
910898 consensus_settings = ConsensusSettings (
911899 ** consensus_settings
0 commit comments