@@ -284,7 +284,25 @@ def from_response_body( # type: ignore[override] # pylint: disable=arguments-d
284284
285285
286286class BasicSearchJob (Job ):
287- """This class defines :class:`BasicSearchJob`."""
287+ """This class defines :class:`BasicSearchJob`.
288+
289+ Arguments:
290+ client: The :class:`~tensorbay.client.requests.Client`.
291+ dataset_id: Dataset ID.
292+ job_updater: The function to update the information of the Job instance.
293+ title: Title of the Job.
294+ job_id: ID of the Job.
295+ arguments: Arguments of the Job.
296+ created_at: The time when the Job is created.
297+ started_at: The time when the Job is started.
298+ finished_at: The time when the Job is finished.
299+ status: The status of the Job.
300+ error_message: The error message of the Job.
301+ result: The result of the Job.
302+ description: The description of the Job.
303+ is_fusion: whether its dataset is a fusion dataset.
304+
305+ """
288306
289307 _T = TypeVar ("_T" , bound = "BasicSearchJob" )
290308
@@ -331,7 +349,7 @@ def result(self) -> Union[SearchResult, FusionSearchResult, None]:
331349 The search result of the BasicSearchJob.
332350
333351 """
334- if self ._result :
352+ if self .status not in _JOB_NOT_COMPLETE_STATUS and self . _result :
335353 search_result_id : str = self ._result ["searchResultId" ]
336354 if self ._is_fusion :
337355 return FusionSearchResult (self .job_id , search_result_id , self ._client )
0 commit comments