pybiolib 1.2.163.dev1__py3-none-any.whl → 1.2.165.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.
- biolib/_runtime/runtime.py +6 -11
- biolib/compute_node/remote_host_proxy.py +9 -0
- {pybiolib-1.2.163.dev1.dist-info → pybiolib-1.2.165.dev1.dist-info}/METADATA +1 -1
- {pybiolib-1.2.163.dev1.dist-info → pybiolib-1.2.165.dev1.dist-info}/RECORD +7 -7
- {pybiolib-1.2.163.dev1.dist-info → pybiolib-1.2.165.dev1.dist-info}/LICENSE +0 -0
- {pybiolib-1.2.163.dev1.dist-info → pybiolib-1.2.165.dev1.dist-info}/WHEEL +0 -0
- {pybiolib-1.2.163.dev1.dist-info → pybiolib-1.2.165.dev1.dist-info}/entry_points.txt +0 -0
biolib/_runtime/runtime.py
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import json
|
2
|
-
import logging
|
3
|
-
import os
|
4
2
|
import re
|
3
|
+
from pathlib import Path
|
5
4
|
from typing import Optional
|
6
5
|
|
7
6
|
from biolib import api
|
8
7
|
from biolib._internal.runtime import BioLibRuntimeError, BioLibRuntimeNotRecognizedError, RuntimeJobDataDict
|
8
|
+
from biolib.biolib_logging import logger
|
9
9
|
from biolib.typing_utils import cast
|
10
10
|
from biolib.utils.seq_util import SeqUtil
|
11
11
|
|
@@ -68,20 +68,15 @@ class Runtime:
|
|
68
68
|
if detecting a BioLib generated name, use ID of the first sequence in the fasta file
|
69
69
|
"""
|
70
70
|
|
71
|
-
def file_path_to_stem(file_path):
|
72
|
-
return os.path.splitext(os.path.basename(file_path))[0]
|
73
|
-
|
74
71
|
# Set job name to first header if FASTA text input (random BioLib file) detected
|
75
72
|
if re.match('^input_[A-Za-z0-9]+.*', path_to_fasta):
|
76
73
|
first_id = next(SeqUtil.parse_fasta(path_to_fasta)).id
|
77
|
-
|
78
|
-
|
74
|
+
result_name = first_id.replace(' ', '_')[:60]
|
79
75
|
else:
|
80
|
-
|
81
|
-
|
82
|
-
logging.debug(f"Setting job name to '{job_name}' from {path_to_fasta}")
|
76
|
+
result_name = Path(path_to_fasta).stem
|
83
77
|
|
84
|
-
|
78
|
+
logger.debug(f'Setting result name to "{result_name}" from {path_to_fasta}')
|
79
|
+
Runtime.set_result_name_prefix(result_name)
|
85
80
|
|
86
81
|
@staticmethod
|
87
82
|
def create_result_note(note: str) -> None:
|
@@ -300,6 +300,15 @@ http {{
|
|
300
300
|
proxy_ssl_server_name on;
|
301
301
|
}}
|
302
302
|
|
303
|
+
location /api/resources/versions/ {{
|
304
|
+
proxy_pass https://$upstream_hostname$request_uri;
|
305
|
+
proxy_set_header authorization "";
|
306
|
+
proxy_set_header compute-node-auth-token "{compute_node_auth_token}";
|
307
|
+
proxy_set_header job-uuid "{self._job_uuid}";
|
308
|
+
proxy_set_header cookie "";
|
309
|
+
proxy_ssl_server_name on;
|
310
|
+
}}
|
311
|
+
|
303
312
|
location /api/ {{
|
304
313
|
proxy_pass https://$upstream_hostname$request_uri;
|
305
314
|
proxy_set_header authorization "";
|
@@ -26,7 +26,7 @@ biolib/_internal/types/resource_version.py,sha256=sLxViYXloDDUhTDFgjegiQCj097OM1
|
|
26
26
|
biolib/_internal/types/typing.py,sha256=D4EKKEe7kDx0K6lJi-H_XLtk-8w6nu2fdqn9bvzI-Xo,288
|
27
27
|
biolib/_internal/utils/__init__.py,sha256=p5vsIFyu-zYqBgdSMfwW9NC_jk7rXvvCbV4Bzd3As7c,630
|
28
28
|
biolib/_internal/utils/multinode.py,sha256=zWrQhcVK5u_xdWX2oIM-D_2fINqNPlqF_h71fu4K8LY,8279
|
29
|
-
biolib/_runtime/runtime.py,sha256=
|
29
|
+
biolib/_runtime/runtime.py,sha256=b6AnHtfJ2DmEspC02sOGLt7VjienFKWaiR2PmMKnC38,3931
|
30
30
|
biolib/api/__init__.py,sha256=mQ4u8FijqyLzjYMezMUUbbBGNB3iFmkNdjXnWPZ7Jlw,138
|
31
31
|
biolib/api/client.py,sha256=FRpdH5aI187b_I_4HUNi680v4iOP65z5f2RcUo8D8MA,3559
|
32
32
|
biolib/app/__init__.py,sha256=cdPtcfb_U-bxb9iSL4fCEq2rpD9OjkyY4W-Zw60B0LI,37
|
@@ -89,7 +89,7 @@ biolib/compute_node/job_worker/large_file_system.py,sha256=XXqRlVtYhs-Ji9zQGIk5K
|
|
89
89
|
biolib/compute_node/job_worker/mappings.py,sha256=Z48Kg4nbcOvsT2-9o3RRikBkqflgO4XeaWxTGz-CNvI,2499
|
90
90
|
biolib/compute_node/job_worker/utilization_reporter_thread.py,sha256=7tm5Yk9coqJ9VbEdnO86tSXI0iM0omwIyKENxdxiVXk,8575
|
91
91
|
biolib/compute_node/job_worker/utils.py,sha256=wgxcIA8yAhUPdCwyvuuJ0JmreyWmmUoBO33vWtG60xg,1282
|
92
|
-
biolib/compute_node/remote_host_proxy.py,sha256=
|
92
|
+
biolib/compute_node/remote_host_proxy.py,sha256=aRo27m6KtNVLJm1nJSNv4ZKqdRj3E4hgaJ1m_912D28,16085
|
93
93
|
biolib/compute_node/socker_listener_thread.py,sha256=T5_UikA3MB9bD5W_dckYLPTgixh72vKUlgbBvj9dbM0,1601
|
94
94
|
biolib/compute_node/socket_sender_thread.py,sha256=YgamPHeUm2GjMFGx8qk-99WlZhEs-kAb3q_2O6qByig,971
|
95
95
|
biolib/compute_node/utils.py,sha256=M7i_WTyxbFM3Lri9RWZ_8FeQNYrQIWpKGLfp2I55oeY,4677
|
@@ -119,8 +119,8 @@ biolib/utils/cache_state.py,sha256=u256F37QSRIVwqKlbnCyzAX4EMI-kl6Dwu6qwj-Qmag,3
|
|
119
119
|
biolib/utils/multipart_uploader.py,sha256=XvGP1I8tQuKhAH-QugPRoEsCi9qvbRk-DVBs5PNwwJo,8452
|
120
120
|
biolib/utils/seq_util.py,sha256=Ozk0blGtPur_D9MwShD02r_mphyQmgZkx-lOHOwnlIM,6730
|
121
121
|
biolib/utils/zip/remote_zip.py,sha256=0wErYlxir5921agfFeV1xVjf29l9VNgGQvNlWOlj2Yc,23232
|
122
|
-
pybiolib-1.2.
|
123
|
-
pybiolib-1.2.
|
124
|
-
pybiolib-1.2.
|
125
|
-
pybiolib-1.2.
|
126
|
-
pybiolib-1.2.
|
122
|
+
pybiolib-1.2.165.dev1.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
|
123
|
+
pybiolib-1.2.165.dev1.dist-info/METADATA,sha256=TibDU4nqAO4oHJ5use3iN1D2AflfMyfwk2rV73hkVAg,1512
|
124
|
+
pybiolib-1.2.165.dev1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
125
|
+
pybiolib-1.2.165.dev1.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
|
126
|
+
pybiolib-1.2.165.dev1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|