pybiolib 1.2.678__py3-none-any.whl → 1.2.686__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 +14 -1
- {pybiolib-1.2.678.dist-info → pybiolib-1.2.686.dist-info}/METADATA +1 -1
- {pybiolib-1.2.678.dist-info → pybiolib-1.2.686.dist-info}/RECORD +6 -6
- {pybiolib-1.2.678.dist-info → pybiolib-1.2.686.dist-info}/LICENSE +0 -0
- {pybiolib-1.2.678.dist-info → pybiolib-1.2.686.dist-info}/WHEEL +0 -0
- {pybiolib-1.2.678.dist-info → pybiolib-1.2.686.dist-info}/entry_points.txt +0 -0
biolib/jobs/job.py
CHANGED
@@ -63,7 +63,7 @@ class Job:
|
|
63
63
|
|
64
64
|
# ANSI color codes for terminal output
|
65
65
|
blue = '\033[34m'
|
66
|
-
white = '\033[
|
66
|
+
white = '\033[90m'
|
67
67
|
reset = '\033[0m'
|
68
68
|
|
69
69
|
# Start with the header section
|
@@ -296,6 +296,19 @@ class Job:
|
|
296
296
|
except Exception as error:
|
297
297
|
logger.error(f'Failed to cancel job {self._uuid} due to: {error}')
|
298
298
|
|
299
|
+
def delete(self) -> None:
|
300
|
+
"""Delete the job.
|
301
|
+
|
302
|
+
Example::
|
303
|
+
>>> job = biolib.get_job("job_id")
|
304
|
+
>>> job.delete()
|
305
|
+
"""
|
306
|
+
try:
|
307
|
+
biolib.api.client.delete(path=f'/jobs/{self._uuid}/')
|
308
|
+
logger.info(f'Job {self._uuid} deleted')
|
309
|
+
except Exception as error:
|
310
|
+
raise BioLibError(f'Failed to delete job {self._uuid} due to: {error}') from error
|
311
|
+
|
299
312
|
def rename(self, name: str) -> None:
|
300
313
|
try:
|
301
314
|
biolib.api.client.patch(
|
@@ -108,7 +108,7 @@ biolib/compute_node/webserver/worker_thread.py,sha256=7uD9yQPhePYvP2HCJ27EeZ_h6p
|
|
108
108
|
biolib/experiments/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
109
109
|
biolib/experiments/experiment.py,sha256=pBtnOHz0kKoFxlIGf08o8ZCEOze-CljwfOsTdhvCTCk,8646
|
110
110
|
biolib/jobs/__init__.py,sha256=aIb2H2DHjQbM2Bs-dysFijhwFcL58Blp0Co0gimED3w,32
|
111
|
-
biolib/jobs/job.py,sha256=
|
111
|
+
biolib/jobs/job.py,sha256=X33-s9u8x3uZI0x_fSDgEFAW0ke-8Qi96M-VB-W29MA,26703
|
112
112
|
biolib/jobs/job_result.py,sha256=rALHiKYNaC9lHi_JJqBob1RubzNLwG9Z386kwRJjd2M,5885
|
113
113
|
biolib/jobs/types.py,sha256=ezvaoTANsWazK6PmfpYcqezdfjP7MNBEBfqIZGoZhz8,997
|
114
114
|
biolib/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -126,8 +126,8 @@ biolib/utils/cache_state.py,sha256=u256F37QSRIVwqKlbnCyzAX4EMI-kl6Dwu6qwj-Qmag,3
|
|
126
126
|
biolib/utils/multipart_uploader.py,sha256=XvGP1I8tQuKhAH-QugPRoEsCi9qvbRk-DVBs5PNwwJo,8452
|
127
127
|
biolib/utils/seq_util.py,sha256=Ozk0blGtPur_D9MwShD02r_mphyQmgZkx-lOHOwnlIM,6730
|
128
128
|
biolib/utils/zip/remote_zip.py,sha256=0wErYlxir5921agfFeV1xVjf29l9VNgGQvNlWOlj2Yc,23232
|
129
|
-
pybiolib-1.2.
|
130
|
-
pybiolib-1.2.
|
131
|
-
pybiolib-1.2.
|
132
|
-
pybiolib-1.2.
|
133
|
-
pybiolib-1.2.
|
129
|
+
pybiolib-1.2.686.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
|
130
|
+
pybiolib-1.2.686.dist-info/METADATA,sha256=bv0qAgdSwT1HiS0SiiZb0fcsl9TFn2YWIG5TCf8zB4c,1570
|
131
|
+
pybiolib-1.2.686.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
132
|
+
pybiolib-1.2.686.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
|
133
|
+
pybiolib-1.2.686.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|