@@ -230,6 +230,9 @@ def get_task(client, task_id):
230
230
231
231
232
232
class DataUpsertTask (Task ):
233
+ """
234
+ Task class for data row upsert operations
235
+ """
233
236
__max_donwload_size : Final = MAX_DATAROW_PER_API_OPERATION
234
237
235
238
def __init__ (self , * args , ** kwargs ):
@@ -238,12 +241,18 @@ def __init__(self, *args, **kwargs):
238
241
239
242
@property
240
243
def result (self ) -> Optional [List [Dict [str , Any ]]]: # type: ignore
244
+ """
245
+ Fetches maximum 150K results. If you need to fetch more, use `result_all` property
246
+ """
241
247
if self .status == "FAILED" :
242
248
raise ValueError (f"Job failed. Errors : { self .errors } " )
243
249
return self ._results_as_list ()
244
250
245
251
@property
246
252
def errors (self ) -> Optional [List [Dict [str , Any ]]]: # type: ignore
253
+ """
254
+ Fetches maximum 150K errors. If you need to fetch more, use `errors_all` property
255
+ """
247
256
return self ._errors_as_list ()
248
257
249
258
@property
@@ -258,10 +267,19 @@ def failed_data_rows( # type: ignore
258
267
259
268
@property
260
269
def result_all (self ) -> PaginatedCollection :
270
+ """
271
+ This method uses our standard PaginatedCollection and allow to fetch any number of results
272
+ See here for more https://docs.labelbox.com/reference/sdk-fundamental-concepts-1#iterate-over-paginatedcollection
273
+ """
261
274
return self ._download_results_paginated ()
262
275
263
276
@property
264
277
def errors_all (self ) -> PaginatedCollection :
278
+ """
279
+ This method uses our standard PaginatedCollection and allow to fetch any number of errors
280
+ See here for more https://docs.labelbox.com/reference/sdk-fundamental-concepts-1#iterate-over-paginatedcollection
281
+ """
282
+
265
283
return self ._download_errors_paginated ()
266
284
267
285
def _download_results_paginated (self ) -> PaginatedCollection :
0 commit comments