pybiolib 1.1.2216__py3-none-any.whl → 1.1.2224__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/_internal/http_client.py +4 -2
- biolib/compute_node/webserver/worker_thread.py +2 -2
- {pybiolib-1.1.2216.dist-info → pybiolib-1.1.2224.dist-info}/METADATA +1 -1
- {pybiolib-1.1.2216.dist-info → pybiolib-1.1.2224.dist-info}/RECORD +7 -7
- {pybiolib-1.1.2216.dist-info → pybiolib-1.1.2224.dist-info}/LICENSE +0 -0
- {pybiolib-1.1.2216.dist-info → pybiolib-1.1.2224.dist-info}/WHEEL +0 -0
- {pybiolib-1.1.2216.dist-info → pybiolib-1.1.2224.dist-info}/entry_points.txt +0 -0
biolib/_internal/http_client.py
CHANGED
@@ -125,12 +125,14 @@ class HttpClient:
|
|
125
125
|
|
126
126
|
except urllib.error.URLError as error:
|
127
127
|
if isinstance(error.reason, socket.timeout):
|
128
|
-
|
128
|
+
if retry_count > 0:
|
129
|
+
logger_no_user_data.warning(f'HTTP {method} request failed with read timeout for "{url}"')
|
129
130
|
last_error = error
|
130
131
|
else:
|
131
132
|
raise error
|
132
133
|
except socket.timeout as error:
|
133
|
-
|
134
|
+
if retry_count > 0:
|
135
|
+
logger_no_user_data.warning(f'HTTP {method} request failed with read timeout for "{url}"')
|
134
136
|
last_error = error
|
135
137
|
|
136
138
|
raise last_error or Exception(f'HTTP {method} request failed after {retries} retries for "{url}"')
|
@@ -242,10 +242,9 @@ class WorkerThread(threading.Thread):
|
|
242
242
|
f'Job "{self._job_uuid}" could not be found, maybe it has already been cleaned up'
|
243
243
|
)
|
244
244
|
|
245
|
-
logger_no_user_data.debug(f'Job "{self._job_uuid}" worker thread terminated')
|
246
|
-
|
247
245
|
if utils.IS_RUNNING_IN_CLOUD:
|
248
246
|
config = CloudUtils.get_webserver_config()
|
247
|
+
logger_no_user_data.debug(f'Job "{self._job_uuid}" reporting CloudJob "{cloud_job_uuid}" as cleaned up...')
|
249
248
|
api.client.post(
|
250
249
|
path=f'/internal/compute-nodes/cloud-jobs/{cloud_job_uuid}/cleaned-up/',
|
251
250
|
headers={'Compute-Node-Auth-Token': config['compute_node_info']['auth_token']},
|
@@ -256,4 +255,5 @@ class WorkerThread(threading.Thread):
|
|
256
255
|
else:
|
257
256
|
webserver_utils.update_auto_shutdown_time()
|
258
257
|
|
258
|
+
logger_no_user_data.debug(f'Job "{self._job_uuid}" worker thread exiting...')
|
259
259
|
sys.exit()
|
@@ -9,7 +9,7 @@ biolib/_internal/data_record/remote_storage_endpoint.py,sha256=eCptuZ4DMAPnaNCVD
|
|
9
9
|
biolib/_internal/file_utils.py,sha256=4jT6j7bB21c0JNn5BfnyWQib_zt0CVtJ_TiOFOStRcE,2604
|
10
10
|
biolib/_internal/fuse_mount/__init__.py,sha256=B_tM6RM2dBw-vbpoHJC4X3tOAaN1H2RDvqYJOw3xFwg,55
|
11
11
|
biolib/_internal/fuse_mount/experiment_fuse_mount.py,sha256=08aUdEq_bvqLBft_gSLjOClKDy5sBnMts1RfJf7AP_U,7012
|
12
|
-
biolib/_internal/http_client.py,sha256=
|
12
|
+
biolib/_internal/http_client.py,sha256=Q7z7_DMI1EaVJSyevrra63piuee-NfqcAHRtQt76ZdA,5165
|
13
13
|
biolib/_internal/lfs/__init__.py,sha256=gSWo_xg61UniYgD7yNYxeT4I9uaXBCBSi3_nmZjnPpE,35
|
14
14
|
biolib/_internal/lfs/cache.py,sha256=pQS2np21rdJ6I3DpoOutnzPHpLOZgUIS8TMltUJk_k4,2226
|
15
15
|
biolib/_internal/libs/__init__.py,sha256=Jdf4tNPqe_oIIf6zYml6TiqhL_02Vyqwge6IELrAFhw,98
|
@@ -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=
|
98
|
+
biolib/compute_node/webserver/worker_thread.py,sha256=AfzSK6ZXXHB1QufemIEmCbVjvLPcOieNJK4xJRRM7B0,11871
|
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.
|
120
|
-
pybiolib-1.1.
|
121
|
-
pybiolib-1.1.
|
122
|
-
pybiolib-1.1.
|
123
|
-
pybiolib-1.1.
|
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,,
|
File without changes
|
File without changes
|
File without changes
|