pybiolib 1.1.1986__py3-none-any.whl → 1.1.1990__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/fuse_mount/experiment_fuse_mount.py +9 -6
- biolib/biolib_api_client/app_types.py +1 -0
- biolib/compute_node/job_worker/job_worker.py +1 -0
- biolib/compute_node/remote_host_proxy.py +4 -2
- {pybiolib-1.1.1986.dist-info → pybiolib-1.1.1990.dist-info}/METADATA +1 -1
- {pybiolib-1.1.1986.dist-info → pybiolib-1.1.1990.dist-info}/RECORD +9 -9
- {pybiolib-1.1.1986.dist-info → pybiolib-1.1.1990.dist-info}/LICENSE +0 -0
- {pybiolib-1.1.1986.dist-info → pybiolib-1.1.1990.dist-info}/WHEEL +0 -0
- {pybiolib-1.1.1986.dist-info → pybiolib-1.1.1990.dist-info}/entry_points.txt +0 -0
@@ -21,6 +21,9 @@ class _AttributeDict(TypedDict):
|
|
21
21
|
st_uid: int
|
22
22
|
|
23
23
|
|
24
|
+
_SUCCESS_CODE = 0
|
25
|
+
|
26
|
+
|
24
27
|
class ExperimentFuseMount(Operations):
|
25
28
|
def __init__(self, experiment):
|
26
29
|
self._experiment = experiment
|
@@ -97,7 +100,7 @@ class ExperimentFuseMount(Operations):
|
|
97
100
|
# file not found
|
98
101
|
raise FuseOSError(errno.ENOENT) from None
|
99
102
|
|
100
|
-
return
|
103
|
+
return 1234 # dummy file handle
|
101
104
|
|
102
105
|
def read(self, path: str, size: int, offset: int, fh: int) -> bytes:
|
103
106
|
job, path_in_job = self._parse_path(path)
|
@@ -109,10 +112,13 @@ class ExperimentFuseMount(Operations):
|
|
109
112
|
return file.get_data(start=offset, length=size)
|
110
113
|
|
111
114
|
def release(self, path: str, fh: int) -> int:
|
112
|
-
return
|
115
|
+
return _SUCCESS_CODE
|
113
116
|
|
114
117
|
def releasedir(self, path: str, fh: int) -> int:
|
115
|
-
return
|
118
|
+
return _SUCCESS_CODE
|
119
|
+
|
120
|
+
def flush(self, path: str, fh: int) -> int:
|
121
|
+
return _SUCCESS_CODE
|
116
122
|
|
117
123
|
@staticmethod
|
118
124
|
def _get_directory_attributes(timestamp_epoch_seconds: int) -> _AttributeDict:
|
@@ -199,8 +205,5 @@ class ExperimentFuseMount(Operations):
|
|
199
205
|
def truncate(self, path, length, fh=None):
|
200
206
|
raise FuseOSError(errno.EACCES)
|
201
207
|
|
202
|
-
def flush(self, path, fh):
|
203
|
-
raise FuseOSError(errno.EACCES)
|
204
|
-
|
205
208
|
def fsync(self, path, datasync, fh):
|
206
209
|
raise FuseOSError(errno.EACCES)
|
@@ -317,6 +317,7 @@ class JobWorker:
|
|
317
317
|
job_id,
|
318
318
|
ports,
|
319
319
|
can_push_data_record_for_user=app.get('can_push_data_record_for_user', False),
|
320
|
+
can_access_all_data_records_of_user=app.get('can_access_all_data_records_of_user', False),
|
320
321
|
)
|
321
322
|
remote_host_proxy.start()
|
322
323
|
self._remote_host_proxies.append(remote_host_proxy)
|
@@ -31,8 +31,10 @@ class RemoteHostProxy:
|
|
31
31
|
job_id: str,
|
32
32
|
ports: List[int],
|
33
33
|
can_push_data_record_for_user: bool,
|
34
|
+
can_access_all_data_records_of_user: bool,
|
34
35
|
):
|
35
36
|
self._can_push_data_record_for_user: bool = can_push_data_record_for_user
|
37
|
+
self._can_access_all_data_records_of_user: bool = can_access_all_data_records_of_user
|
36
38
|
self.is_app_caller_proxy = remote_host['hostname'] == 'AppCallerProxy'
|
37
39
|
self._remote_host: RemoteHostExtended = RemoteHostExtended(hostname=remote_host['hostname'], ports=ports)
|
38
40
|
self._public_network: Network = public_network
|
@@ -297,7 +299,7 @@ http {{
|
|
297
299
|
|
298
300
|
location /api/lfs/ {{
|
299
301
|
proxy_pass {base_url}/api/lfs/;
|
300
|
-
proxy_set_header authorization {'$bearer_token_on_post_and_get' if self._can_push_data_record_for_user else '""'};
|
302
|
+
proxy_set_header authorization {'$bearer_token_on_post_and_get' if self._can_push_data_record_for_user else '$bearer_token_on_get' if self._can_access_all_data_records_of_user else '""'};
|
301
303
|
proxy_set_header cookie "";
|
302
304
|
proxy_ssl_server_name on;
|
303
305
|
}}
|
@@ -337,7 +339,7 @@ http {{
|
|
337
339
|
proxy_set_header cookie "";
|
338
340
|
proxy_ssl_server_name on;
|
339
341
|
}}
|
340
|
-
""" if self._can_push_data_record_for_user else ''}
|
342
|
+
""" if self._can_push_data_record_for_user or self._can_access_all_data_records_of_user else ''}
|
341
343
|
|
342
344
|
location /proxy/cloud/ {{
|
343
345
|
proxy_pass {cloud_base_url}/proxy/cloud/;
|
@@ -6,7 +6,7 @@ biolib/_internal/data_record/__init__.py,sha256=1Bk303i3rFet9veS56fIsrBYtT5X3n9v
|
|
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
8
|
biolib/_internal/fuse_mount/__init__.py,sha256=B_tM6RM2dBw-vbpoHJC4X3tOAaN1H2RDvqYJOw3xFwg,55
|
9
|
-
biolib/_internal/fuse_mount/experiment_fuse_mount.py,sha256=
|
9
|
+
biolib/_internal/fuse_mount/experiment_fuse_mount.py,sha256=08aUdEq_bvqLBft_gSLjOClKDy5sBnMts1RfJf7AP_U,7012
|
10
10
|
biolib/_internal/http_client.py,sha256=DdooXei93JKGYGV4aQmzue_oFzvHkozg2UCxgk9dfDM,5081
|
11
11
|
biolib/_internal/libs/__init__.py,sha256=Jdf4tNPqe_oIIf6zYml6TiqhL_02Vyqwge6IELrAFhw,98
|
12
12
|
biolib/_internal/libs/fusepy/__init__.py,sha256=AWDzNFS-XV_5yKb0Qx7kggIhPzq1nj_BZS5y2Nso08k,41944
|
@@ -20,7 +20,7 @@ biolib/app/app.py,sha256=8AvPYL1W2wxQ7t7BB2KeVU2WPrm3UL6vVuHPGs8g9L0,8388
|
|
20
20
|
biolib/app/search_apps.py,sha256=K4a41f5XIWth2BWI7OffASgIsD0ko8elCax8YL2igaY,1470
|
21
21
|
biolib/biolib_api_client/__init__.py,sha256=E5EMa19wJoblwSdQPYrxc_BtIeRsAuO0L_jQweWw-Yk,182
|
22
22
|
biolib/biolib_api_client/api_client.py,sha256=J03jRVvod1bgwwAZ3BZVKlUSJi43-ev2DUB0j63GZpc,7189
|
23
|
-
biolib/biolib_api_client/app_types.py,sha256=
|
23
|
+
biolib/biolib_api_client/app_types.py,sha256=NpOFN9oVF08qpo2nXhKwC_AQYAIuSoqn9FeqGXTWhx8,2511
|
24
24
|
biolib/biolib_api_client/auth.py,sha256=kjm0ZHnH3I8so3su2sZbBxNHYp-ZUdrZ5lwQ0K36RSw,949
|
25
25
|
biolib/biolib_api_client/biolib_app_api.py,sha256=DndlVxrNTes6DOaWyMINLGZQCRMWVvR7gwt5HVlyf5Y,4240
|
26
26
|
biolib/biolib_api_client/biolib_job_api.py,sha256=IpFahcRzm7GNy8DJ-XHYe-x7r4Voba8o22IXw5puHn8,6782
|
@@ -70,12 +70,12 @@ biolib/compute_node/job_worker/executors/types.py,sha256=yP5gG39hr-DLnw9bOE--VHi
|
|
70
70
|
biolib/compute_node/job_worker/job_legacy_input_wait_timeout_thread.py,sha256=_cvEiZbOwfkv6fYmfrvdi_FVviIEYr_dSClQcOQaUWM,1198
|
71
71
|
biolib/compute_node/job_worker/job_max_runtime_timer_thread.py,sha256=K_xgz7IhiIjpLlXRk8sqaMyLoApcidJkgu29sJX0gb8,1174
|
72
72
|
biolib/compute_node/job_worker/job_storage.py,sha256=LNkklckDLbYgCHsK5FGrEK75Kw-H4f4JcTCAtuE9His,4035
|
73
|
-
biolib/compute_node/job_worker/job_worker.py,sha256=
|
73
|
+
biolib/compute_node/job_worker/job_worker.py,sha256=KDtj3rKokZVKx323-Z0brd5paSYIN6AOhPLHyYQjT5E,29101
|
74
74
|
biolib/compute_node/job_worker/large_file_system.py,sha256=XXqRlVtYhs-Ji9zQGIk5KQPXFO_Q5jJH0nnlw4GkeMY,10461
|
75
75
|
biolib/compute_node/job_worker/mappings.py,sha256=Z48Kg4nbcOvsT2-9o3RRikBkqflgO4XeaWxTGz-CNvI,2499
|
76
76
|
biolib/compute_node/job_worker/utilization_reporter_thread.py,sha256=7tm5Yk9coqJ9VbEdnO86tSXI0iM0omwIyKENxdxiVXk,8575
|
77
77
|
biolib/compute_node/job_worker/utils.py,sha256=wgxcIA8yAhUPdCwyvuuJ0JmreyWmmUoBO33vWtG60xg,1282
|
78
|
-
biolib/compute_node/remote_host_proxy.py,sha256=
|
78
|
+
biolib/compute_node/remote_host_proxy.py,sha256=1YE1GcZswEfi7X4oLMHAqm5iyTpgaXfNoP2o4IfapE4,16031
|
79
79
|
biolib/compute_node/socker_listener_thread.py,sha256=T5_UikA3MB9bD5W_dckYLPTgixh72vKUlgbBvj9dbM0,1601
|
80
80
|
biolib/compute_node/socket_sender_thread.py,sha256=YgamPHeUm2GjMFGx8qk-99WlZhEs-kAb3q_2O6qByig,971
|
81
81
|
biolib/compute_node/utils.py,sha256=M7i_WTyxbFM3Lri9RWZ_8FeQNYrQIWpKGLfp2I55oeY,4677
|
@@ -109,8 +109,8 @@ biolib/utils/cache_state.py,sha256=u256F37QSRIVwqKlbnCyzAX4EMI-kl6Dwu6qwj-Qmag,3
|
|
109
109
|
biolib/utils/multipart_uploader.py,sha256=XvGP1I8tQuKhAH-QugPRoEsCi9qvbRk-DVBs5PNwwJo,8452
|
110
110
|
biolib/utils/seq_util.py,sha256=jC5WhH63FTD7SLFJbxQGA2hOt9NTwq9zHl_BEec1Z0c,4907
|
111
111
|
biolib/utils/zip/remote_zip.py,sha256=0wErYlxir5921agfFeV1xVjf29l9VNgGQvNlWOlj2Yc,23232
|
112
|
-
pybiolib-1.1.
|
113
|
-
pybiolib-1.1.
|
114
|
-
pybiolib-1.1.
|
115
|
-
pybiolib-1.1.
|
116
|
-
pybiolib-1.1.
|
112
|
+
pybiolib-1.1.1990.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
|
113
|
+
pybiolib-1.1.1990.dist-info/METADATA,sha256=caKeGITxdxV7LaEVBD3KdmF13EmtBZBBkbG3fZN2KDs,1508
|
114
|
+
pybiolib-1.1.1990.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
115
|
+
pybiolib-1.1.1990.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
|
116
|
+
pybiolib-1.1.1990.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|