Skip to content

Commit cac05ba

Browse files
authored
Merge pull request #324 from Labelbox/pnoirel_examples
Add a note to export_data_rows about the cache period
2 parents 7e893f8 + f4cb1c7 commit cac05ba

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

labelbox/schema/dataset.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,12 @@ def data_row_for_external_id(self, external_id):
360360
return data_rows[0]
361361

362362
def export_data_rows(self, timeout_seconds=120):
363-
""" Returns a generator that produces all data rows that are currently attached to this dataset.
364-
363+
""" Returns a generator that produces all data rows that are currently
364+
attached to this dataset.
365+
366+
Note: For efficiency, the data are cached for 30 minutes. Newly created data rows will not appear
367+
until the end of the cache period.
368+
365369
Args:
366370
timeout_seconds (float): Max waiting time, in seconds.
367371
Returns:

0 commit comments

Comments
 (0)