pybiolib 1.1.1745__py3-none-any.whl → 1.1.1747__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.
@@ -68,7 +68,7 @@ class CloudUtils:
68
68
  return CloudUtils._webserver_config
69
69
 
70
70
  @staticmethod
71
- def deregister() -> None:
71
+ def deregister(error: Optional[str] = None) -> None:
72
72
  if utils.IS_RUNNING_IN_CLOUD:
73
73
  config = CloudUtils.get_webserver_config()
74
74
  try:
@@ -78,6 +78,7 @@ class CloudUtils:
78
78
  data={
79
79
  'auth_token': config['compute_node_info']['auth_token'],
80
80
  'public_id': config['compute_node_info']['public_id'],
81
+ 'error': error,
81
82
  },
82
83
  )
83
84
  except BaseException as error:
@@ -199,7 +199,7 @@ class WorkerThread(threading.Thread):
199
199
  logger_no_user_data.error(f'Job {self._job_uuid} worker process did not exit within 10 seconds')
200
200
  if utils.IS_RUNNING_IN_CLOUD:
201
201
  logger_no_user_data.error('Deregistering compute node...')
202
- CloudUtils.deregister()
202
+ CloudUtils.deregister(error='job_cleanup_timed_out')
203
203
  deregistered_due_to_error = True
204
204
 
205
205
  # Delete result as error occurred
@@ -249,7 +249,7 @@ class WorkerThread(threading.Thread):
249
249
 
250
250
  if utils.IS_RUNNING_IN_CLOUD:
251
251
  if deregistered_due_to_error:
252
- CloudUtils.shutdown() # shutdown now
252
+ CloudUtils.shutdown() # shutdown now
253
253
  else:
254
254
  webserver_utils.update_auto_shutdown_time()
255
255
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pybiolib
3
- Version: 1.1.1745
3
+ Version: 1.1.1747
4
4
  Summary: BioLib Python Client
5
5
  Home-page: https://github.com/biolib
6
6
  License: MIT
@@ -48,7 +48,7 @@ biolib/cli/start.py,sha256=TpZq1VHVkLTW1_PyjIGkJg44E3PzxSaGrN2D_rNJL0c,1736
48
48
  biolib/compute_node/.gitignore,sha256=GZdZ4g7HftqfOfasFpBC5zV1YQAbht1a7EzcXD6f3zg,45
49
49
  biolib/compute_node/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
50
50
  biolib/compute_node/cloud_utils/__init__.py,sha256=VZSScLqaz5tg_gpMvWgwkAu9Qf-vgW_QHRoDOaAmU44,67
51
- biolib/compute_node/cloud_utils/cloud_utils.py,sha256=kxlmQP2VUAt0GB94REJeaJ7ZeHfVoIZqb_z92CLbXS0,7540
51
+ biolib/compute_node/cloud_utils/cloud_utils.py,sha256=OSnFEFzpNEnEBCGkFtUvw_V6Qhqo2TQMohKjYRQdzDM,7607
52
52
  biolib/compute_node/job_worker/__init__.py,sha256=ipdPWaABKYrltxny15e2kK8PWdEE7VzXbkKK6wM_zDk,71
53
53
  biolib/compute_node/job_worker/cache_state.py,sha256=N2AxvvgfizKx9P_ysM0GDCmueMUlgcveA4xSdz_Z2IQ,4822
54
54
  biolib/compute_node/job_worker/cache_types.py,sha256=ajpLy8i09QeQS9dEqTn3T6NVNMY_YsHQkSD5nvIHccQ,818
@@ -75,7 +75,7 @@ biolib/compute_node/webserver/gunicorn_flask_application.py,sha256=jPfR_YvNBekLU
75
75
  biolib/compute_node/webserver/webserver.py,sha256=15PkRyhtdtSgFDxa0z78aPO4ciZURsFqJYi-HtUmZF8,6494
76
76
  biolib/compute_node/webserver/webserver_types.py,sha256=Vmt1ZDecYhGBVEYWcW1DVxee1DEPqkqyxQzbsObXWbI,420
77
77
  biolib/compute_node/webserver/webserver_utils.py,sha256=XWvwYPbWNR3qS0FYbLLp-MDDfVk0QdaAmg3xPrT0H2s,4234
78
- biolib/compute_node/webserver/worker_thread.py,sha256=-d0WCrZkf9X0TNO9JBOzwScFUcToKPzW7hOeHXHiE6g,11539
78
+ biolib/compute_node/webserver/worker_thread.py,sha256=26tG73TADnOcXsAr7Iyf6smrLlCqB4x-vvmpUb8WqnA,11569
79
79
  biolib/experiments/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
80
80
  biolib/experiments/experiment.py,sha256=xUd3LkV5ztFIjTx_ehBu8e-flvfuQnYimFtPj1upzb0,5942
81
81
  biolib/experiments/types.py,sha256=n9GxdFA7cLMfHvLLqLmZzX31ELeSSkMXFoEEdFsdWGY,171
@@ -101,8 +101,8 @@ biolib/utils/cache_state.py,sha256=BFrZlV4XZIueIFzAFiPidX4hmwADKY5Y5ZuqlerF5l0,3
101
101
  biolib/utils/multipart_uploader.py,sha256=XvGP1I8tQuKhAH-QugPRoEsCi9qvbRk-DVBs5PNwwJo,8452
102
102
  biolib/utils/seq_util.py,sha256=3BGUppEaR8asFBxktHCrIW0cMmF23b06PsbDQOoeCDQ,4879
103
103
  biolib/utils/zip/remote_zip.py,sha256=0wErYlxir5921agfFeV1xVjf29l9VNgGQvNlWOlj2Yc,23232
104
- pybiolib-1.1.1745.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
105
- pybiolib-1.1.1745.dist-info/METADATA,sha256=9o0h8mS0eI03dktYDVNCm_Qjf2JR8EleLReIN1owqgQ,1508
106
- pybiolib-1.1.1745.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
107
- pybiolib-1.1.1745.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
108
- pybiolib-1.1.1745.dist-info/RECORD,,
104
+ pybiolib-1.1.1747.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
105
+ pybiolib-1.1.1747.dist-info/METADATA,sha256=l0Xv2iALOshL_L-q7k7EzOq5QBWOlc-lm1SG2a5_41E,1508
106
+ pybiolib-1.1.1747.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
107
+ pybiolib-1.1.1747.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
108
+ pybiolib-1.1.1747.dist-info/RECORD,,