diff --git a/labelbox/client.py b/labelbox/client.py index 3316523bb..3989c3264 100644 --- a/labelbox/client.py +++ b/labelbox/client.py @@ -626,6 +626,7 @@ def create_project(self, **kwargs) -> Project: any of the attribute names given in kwargs. """ media_type = kwargs.get("media_type") + queue_mode = kwargs.get("queue_mode") if media_type: if MediaType.is_supported(media_type): kwargs["media_type"] = media_type.value @@ -638,6 +639,12 @@ def create_project(self, **kwargs) -> Project: "Creating a project without specifying media_type" " through this method will soon no longer be supported.") + if not queue_mode: + logger.warning( + "Default createProject behavior will soon be adjusted to prefer" + "batch projects. Pass in `queue_mode` parameter explicitly to opt-out for the" + "time being.") + return self._create(Entity.Project, kwargs) def get_roles(self) -> List[Role]: