Skip to content

Commit 369cc94

Browse files
committed
comment
1 parent d1e1a2f commit 369cc94

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • python/lib/sift_client/sift_types

python/lib/sift_client/sift_types/job.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ def is_in_progress(self) -> bool:
226226
227227
A job is in progress if its status is RUNNING.
228228
"""
229+
self.refresh()
229230
return self.job_status == JobStatus.RUNNING
230231

231232
@property
@@ -234,6 +235,7 @@ def is_failed(self) -> bool:
234235
235236
A job has failed if its status is FAILED.
236237
"""
238+
self.refresh()
237239
return self.job_status == JobStatus.FAILED
238240

239241
@property
@@ -242,6 +244,7 @@ def is_finished(self) -> bool:
242244
243245
A job has finished if its status is FINISHED.
244246
"""
247+
self.refresh()
245248
return self.job_status == JobStatus.FINISHED
246249

247250
@property
@@ -250,6 +253,7 @@ def is_cancelled(self) -> bool:
250253
251254
A job has been cancelled if its status is CANCELLED.
252255
"""
256+
self.refresh()
253257
return self.job_status == JobStatus.CANCELLED
254258

255259
def refresh(self) -> Job:

0 commit comments

Comments
 (0)