pybiolib 1.2.445__py3-none-any.whl → 1.2.465.dev1__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.
@@ -179,7 +179,10 @@ class WorkerThread(threading.Thread):
179
179
  cloud_job_uuid = self.compute_state['cloud_job_id']
180
180
  system_exception_code = self.compute_state['status'].get('error_code')
181
181
 
182
- if utils.IS_RUNNING_IN_CLOUD and system_exception_code != SystemExceptionCodes.CANCELLED_BY_USER.value:
182
+ if utils.IS_RUNNING_IN_CLOUD and system_exception_code not in [
183
+ SystemExceptionCodes.CANCELLED_BY_USER.value,
184
+ SystemExceptionCodes.EXCEEDED_MAX_JOB_RUNTIME.value,
185
+ ]:
183
186
  CloudUtils.finish_cloud_job(
184
187
  cloud_job_id=cloud_job_uuid,
185
188
  system_exception_code=system_exception_code,
@@ -214,7 +217,10 @@ class WorkerThread(threading.Thread):
214
217
  CloudUtils.deregister(error='job_cleanup_timed_out')
215
218
  deregistered_due_to_error = True
216
219
 
217
- elif system_exception_code == SystemExceptionCodes.CANCELLED_BY_USER.value:
220
+ elif system_exception_code in [
221
+ SystemExceptionCodes.CANCELLED_BY_USER.value,
222
+ SystemExceptionCodes.EXCEEDED_MAX_JOB_RUNTIME.value,
223
+ ]:
218
224
  self.compute_state['exit_code'] = self._upload_module_output_and_get_exit_code()
219
225
  CloudUtils.finish_cloud_job(
220
226
  cloud_job_id=cloud_job_uuid,
@@ -222,7 +228,6 @@ class WorkerThread(threading.Thread):
222
228
  exit_code=self.compute_state.get('exit_code', None),
223
229
  )
224
230
 
225
-
226
231
  # Delete result as error occurred
227
232
  if system_exception_code and os.path.exists(self._job_temporary_dir):
228
233
  shutil.rmtree(self._job_temporary_dir)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pybiolib
3
- Version: 1.2.445
3
+ Version: 1.2.465.dev1
4
4
  Summary: BioLib Python Client
5
5
  License: MIT
6
6
  Keywords: biolib
@@ -97,7 +97,7 @@ biolib/compute_node/webserver/gunicorn_flask_application.py,sha256=jPfR_YvNBekLU
97
97
  biolib/compute_node/webserver/webserver.py,sha256=o4kOAStsqThUtKlnRE-U5TP0JIYntuySDjU7PH310xg,6620
98
98
  biolib/compute_node/webserver/webserver_types.py,sha256=2t8EaFKESnves3BA_NBdnS2yAdo1qwamCFHiSt888nE,380
99
99
  biolib/compute_node/webserver/webserver_utils.py,sha256=XWvwYPbWNR3qS0FYbLLp-MDDfVk0QdaAmg3xPrT0H2s,4234
100
- biolib/compute_node/webserver/worker_thread.py,sha256=0kb7RgwDSIzTZfjttUHelyAS8g7VPx1J1E7GbqYObu0,12288
100
+ biolib/compute_node/webserver/worker_thread.py,sha256=7uD9yQPhePYvP2HCJ27EeZ_h6psfIWFgqm1RHZxzobs,12483
101
101
  biolib/experiments/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
102
102
  biolib/experiments/experiment.py,sha256=V1_UtcDm2ydxDjOlk0N7bv1jGTAb06psflAYcqbo0sY,8559
103
103
  biolib/jobs/__init__.py,sha256=aIb2H2DHjQbM2Bs-dysFijhwFcL58Blp0Co0gimED3w,32
@@ -118,8 +118,8 @@ biolib/utils/cache_state.py,sha256=u256F37QSRIVwqKlbnCyzAX4EMI-kl6Dwu6qwj-Qmag,3
118
118
  biolib/utils/multipart_uploader.py,sha256=XvGP1I8tQuKhAH-QugPRoEsCi9qvbRk-DVBs5PNwwJo,8452
119
119
  biolib/utils/seq_util.py,sha256=Ozk0blGtPur_D9MwShD02r_mphyQmgZkx-lOHOwnlIM,6730
120
120
  biolib/utils/zip/remote_zip.py,sha256=0wErYlxir5921agfFeV1xVjf29l9VNgGQvNlWOlj2Yc,23232
121
- pybiolib-1.2.445.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
122
- pybiolib-1.2.445.dist-info/METADATA,sha256=nNQ_JHKGh4VTUJYhQKonNV-AKdM-grhONdFlnBCBNPo,1570
123
- pybiolib-1.2.445.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
124
- pybiolib-1.2.445.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
125
- pybiolib-1.2.445.dist-info/RECORD,,
121
+ pybiolib-1.2.465.dev1.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
122
+ pybiolib-1.2.465.dev1.dist-info/METADATA,sha256=3EdZZrh9-PF72JOSO_chduOMaAnwNv6V7CU2A38wM3w,1575
123
+ pybiolib-1.2.465.dev1.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
124
+ pybiolib-1.2.465.dev1.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
125
+ pybiolib-1.2.465.dev1.dist-info/RECORD,,