Skip to content

Commit 83ecb8d

Browse files
authored
Merge pull request #569 from Labelbox/farkob/increase-batch-timeout
[AL-2384] Increase create_batch timeout
2 parents 47063d7 + f984a30 commit 83ecb8d

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Changelog
22

3-
# Version 3.21.0
3+
# Version 3.21.1 (2022-05-12)
4+
## Updated
5+
* `Project.create_batch()` timeout increased to 180 seconds
6+
7+
# Version 3.21.0 (2022-05-11)
48
## Added
59
* Projects can be created with a `media_type`
610
* Added `media_type` attribute to `Project`

labelbox/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name = "labelbox"
2-
__version__ = "3.21.0"
2+
__version__ = "3.20.1"
33

44
import sys
55
import warnings

labelbox/schema/project.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,9 @@ def create_batch(self, name: str, data_rows: List[str], priority: int = 5):
617617
}
618618
}
619619

620-
res = self.client.execute(query_str, params,
620+
res = self.client.execute(query_str,
621+
params,
622+
timeout=180.0,
621623
experimental=True)["project"][method]
622624

623625
res['size'] = len(dr_ids)

0 commit comments

Comments
 (0)