pybiolib 1.2.582__py3-none-any.whl → 1.2.589__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- biolib/jobs/job.py +18 -0
- {pybiolib-1.2.582.dist-info → pybiolib-1.2.589.dist-info}/METADATA +1 -1
- {pybiolib-1.2.582.dist-info → pybiolib-1.2.589.dist-info}/RECORD +6 -6
- {pybiolib-1.2.582.dist-info → pybiolib-1.2.589.dist-info}/LICENSE +0 -0
- {pybiolib-1.2.582.dist-info → pybiolib-1.2.589.dist-info}/WHEEL +0 -0
- {pybiolib-1.2.582.dist-info → pybiolib-1.2.589.dist-info}/entry_points.txt +0 -0
biolib/jobs/job.py
CHANGED
@@ -91,6 +91,24 @@ class Job:
|
|
91
91
|
self._refetch_job_dict()
|
92
92
|
return bool(self._job_dict['ended_at'])
|
93
93
|
|
94
|
+
def is_pending(self) -> bool:
|
95
|
+
"""Returns whether the job is in a pending state.
|
96
|
+
|
97
|
+
A job is considered pending if it's not finished yet.
|
98
|
+
The job state is re-fetched when this method is called.
|
99
|
+
|
100
|
+
Returns:
|
101
|
+
bool: True if the job is in a pending state, False otherwise.
|
102
|
+
|
103
|
+
Example::
|
104
|
+
>>> job = biolib.get_job("job_id")
|
105
|
+
>>> if job.is_pending():
|
106
|
+
>>> print("Job is still running")
|
107
|
+
>>> else:
|
108
|
+
>>> print("Job has finished")
|
109
|
+
"""
|
110
|
+
return not self.is_finished()
|
111
|
+
|
94
112
|
def get_name(self) -> str:
|
95
113
|
self._refetch_job_dict()
|
96
114
|
return self._job_dict['main_result']['name']
|
@@ -102,7 +102,7 @@ biolib/compute_node/webserver/worker_thread.py,sha256=7uD9yQPhePYvP2HCJ27EeZ_h6p
|
|
102
102
|
biolib/experiments/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
103
103
|
biolib/experiments/experiment.py,sha256=pBtnOHz0kKoFxlIGf08o8ZCEOze-CljwfOsTdhvCTCk,8646
|
104
104
|
biolib/jobs/__init__.py,sha256=aIb2H2DHjQbM2Bs-dysFijhwFcL58Blp0Co0gimED3w,32
|
105
|
-
biolib/jobs/job.py,sha256=
|
105
|
+
biolib/jobs/job.py,sha256=rcQPLrUsVHdzZ0g_T9f3m_mmVF0m-aYi_fKYTbQATaA,24174
|
106
106
|
biolib/jobs/job_result.py,sha256=rALHiKYNaC9lHi_JJqBob1RubzNLwG9Z386kwRJjd2M,5885
|
107
107
|
biolib/jobs/types.py,sha256=ezvaoTANsWazK6PmfpYcqezdfjP7MNBEBfqIZGoZhz8,997
|
108
108
|
biolib/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -120,8 +120,8 @@ biolib/utils/cache_state.py,sha256=u256F37QSRIVwqKlbnCyzAX4EMI-kl6Dwu6qwj-Qmag,3
|
|
120
120
|
biolib/utils/multipart_uploader.py,sha256=XvGP1I8tQuKhAH-QugPRoEsCi9qvbRk-DVBs5PNwwJo,8452
|
121
121
|
biolib/utils/seq_util.py,sha256=Ozk0blGtPur_D9MwShD02r_mphyQmgZkx-lOHOwnlIM,6730
|
122
122
|
biolib/utils/zip/remote_zip.py,sha256=0wErYlxir5921agfFeV1xVjf29l9VNgGQvNlWOlj2Yc,23232
|
123
|
-
pybiolib-1.2.
|
124
|
-
pybiolib-1.2.
|
125
|
-
pybiolib-1.2.
|
126
|
-
pybiolib-1.2.
|
127
|
-
pybiolib-1.2.
|
123
|
+
pybiolib-1.2.589.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
|
124
|
+
pybiolib-1.2.589.dist-info/METADATA,sha256=52kbUnHqEDKEEtKaD8fXAEvurFjhQ5rBn5fQxvF2XiY,1570
|
125
|
+
pybiolib-1.2.589.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
126
|
+
pybiolib-1.2.589.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
|
127
|
+
pybiolib-1.2.589.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|