pybiolib 1.1.1928__py3-none-any.whl → 1.1.1934__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.
@@ -94,7 +94,7 @@ class HttpClient:
94
94
  if timeout_in_seconds is None:
95
95
  timeout_in_seconds = 60 if isinstance(data, dict) else 180 # TODO: Calculate timeout based on data size
96
96
 
97
- last_error: Optional[urllib.error.URLError] = None
97
+ last_error: Optional[Exception] = None
98
98
  for retry_count in range(retries + 1):
99
99
  if retry_count > 0:
100
100
  time.sleep(5 * retry_count)
@@ -108,20 +108,29 @@ class HttpClient:
108
108
  return HttpResponse(response, response_path)
109
109
 
110
110
  except urllib.error.HTTPError as error:
111
- if error.code == 502:
112
- logger_no_user_data.debug(f'HTTP {method} request failed with status 502 for "{url}"')
111
+ if error.code == 429:
112
+ logger_no_user_data.warning(f'HTTP {method} request failed with status 429 for "{url}"')
113
+ last_error = error
114
+ elif error.code == 502:
115
+ logger_no_user_data.warning(f'HTTP {method} request failed with status 502 for "{url}"')
113
116
  last_error = error
114
117
  elif error.code == 503:
115
- logger_no_user_data.debug(f'HTTP {method} request failed with status 503 for "{url}"')
118
+ logger_no_user_data.warning(f'HTTP {method} request failed with status 503 for "{url}"')
119
+ last_error = error
120
+ elif error.code == 504:
121
+ logger_no_user_data.warning(f'HTTP {method} request failed with status 504 for "{url}"')
116
122
  last_error = error
117
123
  else:
118
124
  raise HttpError(error) from None
119
125
 
120
126
  except urllib.error.URLError as error:
121
127
  if isinstance(error.reason, socket.timeout):
122
- logger_no_user_data.debug(f'HTTP {method} request failed with read timeout for "{url}"')
128
+ logger_no_user_data.warning(f'HTTP {method} request failed with read timeout for "{url}"')
123
129
  last_error = error
124
130
  else:
125
131
  raise error
132
+ except socket.timeout as error:
133
+ logger_no_user_data.warning(f'HTTP {method} request failed with read timeout for "{url}"')
134
+ last_error = error
126
135
 
127
136
  raise last_error or Exception(f'HTTP {method} request failed after {retries} retries for "{url}"')
@@ -286,7 +286,7 @@ http {{
286
286
 
287
287
  location ~ "^/api/jobs/{self._job_uuid}/notes/$" {{
288
288
  # Note: Using $1 here as URI part from regex must be used for proxy_pass
289
- proxy_pass {base_url}/api/{self._job_uuid}/notes/$1;
289
+ proxy_pass {base_url}/api/jobs/{self._job_uuid}/notes/$1;
290
290
  proxy_set_header authorization "";
291
291
  proxy_set_header job-auth-token "";
292
292
  proxy_set_header compute-node-auth-token "{compute_node_auth_token}";
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pybiolib
3
- Version: 1.1.1928
3
+ Version: 1.1.1934
4
4
  Summary: BioLib Python Client
5
5
  Home-page: https://github.com/biolib
6
6
  License: MIT
@@ -5,7 +5,7 @@ biolib/_internal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,
5
5
  biolib/_internal/data_record/__init__.py,sha256=1Bk303i3rFet9veS56fIsrBYtT5X3n9vcsYMA6T6c5o,36
6
6
  biolib/_internal/data_record/data_record.py,sha256=ctijrrZ-LfUxtwzS8PEVa1VBuBLVWEhmo2yHcEDkC0A,7178
7
7
  biolib/_internal/data_record/remote_storage_endpoint.py,sha256=LPq8Lr5FhKF9_o5K-bUdT7TeLe5XFUD0AAeTkNEVZug,1133
8
- biolib/_internal/http_client.py,sha256=38PHvRkqdjcOgRXkWU7UoYCQxHMX0eKpuwKhudDupII,4525
8
+ biolib/_internal/http_client.py,sha256=DdooXei93JKGYGV4aQmzue_oFzvHkozg2UCxgk9dfDM,5081
9
9
  biolib/_internal/push_application.py,sha256=H1PGNtVJ0vRC0li39gFMpPpjm6QeZ8Ob-7cLkLmxS_Y,10009
10
10
  biolib/_internal/runtime.py,sha256=Ey8_3FqL8Fi3Wrb7OyLi5WrtShOs6zLbFfpzANfJRcE,2569
11
11
  biolib/_internal/utils/__init__.py,sha256=p5vsIFyu-zYqBgdSMfwW9NC_jk7rXvvCbV4Bzd3As7c,630
@@ -71,7 +71,7 @@ biolib/compute_node/job_worker/large_file_system.py,sha256=XXqRlVtYhs-Ji9zQGIk5K
71
71
  biolib/compute_node/job_worker/mappings.py,sha256=Z48Kg4nbcOvsT2-9o3RRikBkqflgO4XeaWxTGz-CNvI,2499
72
72
  biolib/compute_node/job_worker/utilization_reporter_thread.py,sha256=7tm5Yk9coqJ9VbEdnO86tSXI0iM0omwIyKENxdxiVXk,8575
73
73
  biolib/compute_node/job_worker/utils.py,sha256=wgxcIA8yAhUPdCwyvuuJ0JmreyWmmUoBO33vWtG60xg,1282
74
- biolib/compute_node/remote_host_proxy.py,sha256=OjMtBePFyfDwMy9TKEiJcHc1eVyg_aDfwHxS6UZ3VCw,15763
74
+ biolib/compute_node/remote_host_proxy.py,sha256=a9dlAETI727ejmk07jMGPAmiliBoy4t1yfX_NkLoIZ4,15768
75
75
  biolib/compute_node/socker_listener_thread.py,sha256=T5_UikA3MB9bD5W_dckYLPTgixh72vKUlgbBvj9dbM0,1601
76
76
  biolib/compute_node/socket_sender_thread.py,sha256=YgamPHeUm2GjMFGx8qk-99WlZhEs-kAb3q_2O6qByig,971
77
77
  biolib/compute_node/utils.py,sha256=M7i_WTyxbFM3Lri9RWZ_8FeQNYrQIWpKGLfp2I55oeY,4677
@@ -105,8 +105,8 @@ biolib/utils/cache_state.py,sha256=u256F37QSRIVwqKlbnCyzAX4EMI-kl6Dwu6qwj-Qmag,3
105
105
  biolib/utils/multipart_uploader.py,sha256=XvGP1I8tQuKhAH-QugPRoEsCi9qvbRk-DVBs5PNwwJo,8452
106
106
  biolib/utils/seq_util.py,sha256=jC5WhH63FTD7SLFJbxQGA2hOt9NTwq9zHl_BEec1Z0c,4907
107
107
  biolib/utils/zip/remote_zip.py,sha256=0wErYlxir5921agfFeV1xVjf29l9VNgGQvNlWOlj2Yc,23232
108
- pybiolib-1.1.1928.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
109
- pybiolib-1.1.1928.dist-info/METADATA,sha256=fvGuh51Lep3dHNfn1qvShROgh4pvE6T1AS_VTLBGgtk,1508
110
- pybiolib-1.1.1928.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
111
- pybiolib-1.1.1928.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
112
- pybiolib-1.1.1928.dist-info/RECORD,,
108
+ pybiolib-1.1.1934.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
109
+ pybiolib-1.1.1934.dist-info/METADATA,sha256=ghE4y_tINPJKQk-bmkx5eD_qIOSs62-g0fyC1bEfjBQ,1508
110
+ pybiolib-1.1.1934.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
111
+ pybiolib-1.1.1934.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
112
+ pybiolib-1.1.1934.dist-info/RECORD,,