pybiolib 1.1.2224__py3-none-any.whl → 1.1.2229__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.
@@ -211,6 +211,11 @@ def push_application(
211
211
  try:
212
212
  logger.info(f'Trying to push image {docker_image_name} defined on module {module_name}.')
213
213
  image = docker_client.images.get(docker_image_name)
214
+ architecture = image.attrs.get('Architecture')
215
+ if architecture != 'amd64':
216
+ print(f"Error: '{docker_image_name}' is compiled for {architecture}, expected x86 (amd64).")
217
+ print('If you are on an ARM processor, try passing --platform linux/amd64 to docker build.')
218
+ exit(1)
214
219
  absolute_repo_uri = f'{utils.BIOLIB_SITE_HOSTNAME}/{repo}'
215
220
  image.tag(absolute_repo_uri, tag)
216
221
 
@@ -221,8 +221,8 @@ class WorkerThread(threading.Thread):
221
221
  if self._connection:
222
222
  self._connection.close()
223
223
 
224
- if not utils.IS_RUNNING_IN_CLOUD and self.compute_state['progress'] == 95:
225
- seconds_to_sleep = 60 # 1 minute
224
+ if self.compute_state['progress'] == 95:
225
+ seconds_to_sleep = 5
226
226
  logger_no_user_data.debug(
227
227
  f'Job "{self._job_uuid}" worker thread sleeping for {seconds_to_sleep} seconds before cleaning up'
228
228
  )
@@ -231,7 +231,7 @@ class WorkerThread(threading.Thread):
231
231
 
232
232
  compute_state_dict = webserver_utils.JOB_ID_TO_COMPUTE_STATE_DICT
233
233
  if self._job_uuid in compute_state_dict:
234
- # Delete result as user has not started download within 60 seconds
234
+ # Delete result as user has not started download
235
235
  if compute_state_dict[self._job_uuid]['progress'] == 95 and os.path.exists(self._job_temporary_dir):
236
236
  shutil.rmtree(self._job_temporary_dir)
237
237
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pybiolib
3
- Version: 1.1.2224
3
+ Version: 1.1.2229
4
4
  Summary: BioLib Python Client
5
5
  Home-page: https://github.com/biolib
6
6
  License: MIT
@@ -14,7 +14,7 @@ biolib/_internal/lfs/__init__.py,sha256=gSWo_xg61UniYgD7yNYxeT4I9uaXBCBSi3_nmZjn
14
14
  biolib/_internal/lfs/cache.py,sha256=pQS2np21rdJ6I3DpoOutnzPHpLOZgUIS8TMltUJk_k4,2226
15
15
  biolib/_internal/libs/__init__.py,sha256=Jdf4tNPqe_oIIf6zYml6TiqhL_02Vyqwge6IELrAFhw,98
16
16
  biolib/_internal/libs/fusepy/__init__.py,sha256=AWDzNFS-XV_5yKb0Qx7kggIhPzq1nj_BZS5y2Nso08k,41944
17
- biolib/_internal/push_application.py,sha256=8P7eXvySn7CRp5XBDkO3xjTGixS8g7-jD-_iwzM_XDI,10020
17
+ biolib/_internal/push_application.py,sha256=b1WvlijJYOLp7f43AoAzjINKkALM9DVB8yfSetEP4Z4,10381
18
18
  biolib/_internal/runtime.py,sha256=9pZ3s3L7LGxdqOgnHh1KK3Jjyn_9MjhQmKHI-6hMT3U,448
19
19
  biolib/_internal/types/__init__.py,sha256=11ZucS8jKeLGAAswXyKI7FH2KLHd6T9Sh8ZK2Ar3jlk,152
20
20
  biolib/_internal/types/app.py,sha256=Mz2QGD_jESX-K9JYnLWPo4YA__Q_1FQQTk9pvidCohU,118
@@ -95,7 +95,7 @@ biolib/compute_node/webserver/gunicorn_flask_application.py,sha256=jPfR_YvNBekLU
95
95
  biolib/compute_node/webserver/webserver.py,sha256=15PkRyhtdtSgFDxa0z78aPO4ciZURsFqJYi-HtUmZF8,6494
96
96
  biolib/compute_node/webserver/webserver_types.py,sha256=2t8EaFKESnves3BA_NBdnS2yAdo1qwamCFHiSt888nE,380
97
97
  biolib/compute_node/webserver/webserver_utils.py,sha256=XWvwYPbWNR3qS0FYbLLp-MDDfVk0QdaAmg3xPrT0H2s,4234
98
- biolib/compute_node/webserver/worker_thread.py,sha256=AfzSK6ZXXHB1QufemIEmCbVjvLPcOieNJK4xJRRM7B0,11871
98
+ biolib/compute_node/webserver/worker_thread.py,sha256=GRRBUqXdMKvbjyLQhYlqGIbFKeU2iiEXIe5IXi9wgdg,11806
99
99
  biolib/experiments/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
100
100
  biolib/experiments/experiment.py,sha256=jIRixmQm3Gq9YdJ3I0-rE1vFukXqq6U4zXehFOJ1yZk,7614
101
101
  biolib/jobs/__init__.py,sha256=aIb2H2DHjQbM2Bs-dysFijhwFcL58Blp0Co0gimED3w,32
@@ -116,8 +116,8 @@ biolib/utils/cache_state.py,sha256=u256F37QSRIVwqKlbnCyzAX4EMI-kl6Dwu6qwj-Qmag,3
116
116
  biolib/utils/multipart_uploader.py,sha256=XvGP1I8tQuKhAH-QugPRoEsCi9qvbRk-DVBs5PNwwJo,8452
117
117
  biolib/utils/seq_util.py,sha256=ZQFcaE37B2dtucN2zDjOmdya_X0ITc1zBFZJNQY13XA,5183
118
118
  biolib/utils/zip/remote_zip.py,sha256=0wErYlxir5921agfFeV1xVjf29l9VNgGQvNlWOlj2Yc,23232
119
- pybiolib-1.1.2224.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
120
- pybiolib-1.1.2224.dist-info/METADATA,sha256=dmjOi3vb0Yn0P8VzRgRTUxosMY3NfIrb3zs8lYCEH9k,1508
121
- pybiolib-1.1.2224.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
122
- pybiolib-1.1.2224.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
123
- pybiolib-1.1.2224.dist-info/RECORD,,
119
+ pybiolib-1.1.2229.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
120
+ pybiolib-1.1.2229.dist-info/METADATA,sha256=1RPPo5D5nB3vkThTXRHq-swafKDQXT4E8ZWJh1-DUys,1508
121
+ pybiolib-1.1.2229.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
122
+ pybiolib-1.1.2229.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
123
+ pybiolib-1.1.2229.dist-info/RECORD,,