Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions labelbox/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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]:
Expand Down