pybiolib 1.2.1235__py3-none-any.whl → 1.2.1242__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/runtime.py +1 -0
- biolib/_runtime/runtime.py +4 -0
- biolib/compute_node/job_worker/executors/docker_executor.py +1 -0
- {pybiolib-1.2.1235.dist-info → pybiolib-1.2.1242.dist-info}/METADATA +1 -1
- {pybiolib-1.2.1235.dist-info → pybiolib-1.2.1242.dist-info}/RECORD +8 -8
- {pybiolib-1.2.1235.dist-info → pybiolib-1.2.1242.dist-info}/WHEEL +0 -0
- {pybiolib-1.2.1235.dist-info → pybiolib-1.2.1242.dist-info}/entry_points.txt +0 -0
- {pybiolib-1.2.1235.dist-info → pybiolib-1.2.1242.dist-info}/licenses/LICENSE +0 -0
biolib/_internal/runtime.py
CHANGED
biolib/_runtime/runtime.py
CHANGED
@@ -41,6 +41,10 @@ class Runtime:
|
|
41
41
|
def get_app_uri() -> str:
|
42
42
|
return Runtime._get_job_data()['app_uri']
|
43
43
|
|
44
|
+
@staticmethod
|
45
|
+
def get_max_workers() -> int:
|
46
|
+
return Runtime._get_job_data()['job_reserved_machines']
|
47
|
+
|
44
48
|
@staticmethod
|
45
49
|
def get_secret(secret_name: str) -> bytes:
|
46
50
|
assert re.match(
|
@@ -323,6 +323,7 @@ class DockerExecutor:
|
|
323
323
|
job_auth_token=self._options['job']['auth_token'],
|
324
324
|
app_uri=self._options['job']['app_uri'],
|
325
325
|
is_environment_biolib_cloud=bool(utils.IS_RUNNING_IN_CLOUD),
|
326
|
+
job_reserved_machines=self._options['job']['reserved_machines'],
|
326
327
|
)
|
327
328
|
docker_volume_mounts.append(
|
328
329
|
self._create_secrets_mount(
|
@@ -17,7 +17,7 @@ biolib/_internal/lfs/cache.py,sha256=pQS2np21rdJ6I3DpoOutnzPHpLOZgUIS8TMltUJk_k4
|
|
17
17
|
biolib/_internal/libs/__init__.py,sha256=Jdf4tNPqe_oIIf6zYml6TiqhL_02Vyqwge6IELrAFhw,98
|
18
18
|
biolib/_internal/libs/fusepy/__init__.py,sha256=AWDzNFS-XV_5yKb0Qx7kggIhPzq1nj_BZS5y2Nso08k,41944
|
19
19
|
biolib/_internal/push_application.py,sha256=Ljv7cFeaWRlMdHwn93lhooD227_ZvG8oIRTWHdDdB2M,19177
|
20
|
-
biolib/_internal/runtime.py,sha256=
|
20
|
+
biolib/_internal/runtime.py,sha256=srQo9nbmbNI15eZtb2Dea5f2MWBiNMVW6tDUVr7wiPM,517
|
21
21
|
biolib/_internal/string_utils.py,sha256=N7J7oGu6_yA_z0pOiKqxEh__lRdiDLh6kigeDkQEZ5g,265
|
22
22
|
biolib/_internal/templates/__init__.py,sha256=NVbhLUMC8HITzkLvP88Qu7FHaL-SvQord-DX3gh1Ykk,24
|
23
23
|
biolib/_internal/templates/copilot_template/.github/instructions/general-app-knowledge.instructions.md,sha256=-j8v0GRtDhHoqP2wcGUykiwU7HQ0DmkCNxw_01oKMdY,546
|
@@ -61,7 +61,7 @@ biolib/_internal/types/typing.py,sha256=qrsk8hHcGEbDpU1QQFzHAKnhQxkMe7uJ6pxHeAnf
|
|
61
61
|
biolib/_internal/types/user.py,sha256=5_hYG0jrdGxynCCWXGaHZCAlVcRKBqMIEA2EBGrnpiE,439
|
62
62
|
biolib/_internal/utils/__init__.py,sha256=xp1I-lVnu5owV1CW53jiPEZLKmqqHiPUDfauYDfJ7iQ,1540
|
63
63
|
biolib/_internal/utils/multinode.py,sha256=N7kR49xD1PdkMVlxxzRiSYHfgi9MG-kLCwemcY1rojg,8323
|
64
|
-
biolib/_runtime/runtime.py,sha256=
|
64
|
+
biolib/_runtime/runtime.py,sha256=9q6Wuo8SBcJIezyScAgq2MDfpT0Pg8lcfbBFmeCWiUE,5974
|
65
65
|
biolib/_session/session.py,sha256=US1Y1jfFIAm86-Lq3C7nCXpZXUJXXBVBkND9djMNYxI,1649
|
66
66
|
biolib/api/__init__.py,sha256=mQ4u8FijqyLzjYMezMUUbbBGNB3iFmkNdjXnWPZ7Jlw,138
|
67
67
|
biolib/api/client.py,sha256=2GpKE7QrPgyPdgJgrV7XnZByIJf1n26UCy3aoaHBs1M,7881
|
@@ -114,7 +114,7 @@ biolib/compute_node/job_worker/cache_state.py,sha256=MwjSRzcJJ_4jybqvBL4xdgnDYSI
|
|
114
114
|
biolib/compute_node/job_worker/cache_types.py,sha256=ajpLy8i09QeQS9dEqTn3T6NVNMY_YsHQkSD5nvIHccQ,818
|
115
115
|
biolib/compute_node/job_worker/docker_image_cache.py,sha256=ansHIkJIq_EMW1nZNlW-RRLVVeKWTbzNICYaOHpKiRE,7460
|
116
116
|
biolib/compute_node/job_worker/executors/__init__.py,sha256=bW6t1qi3PZTlHM4quaTLa8EI4ALTCk83cqcVJfJfJfE,145
|
117
|
-
biolib/compute_node/job_worker/executors/docker_executor.py,sha256=
|
117
|
+
biolib/compute_node/job_worker/executors/docker_executor.py,sha256=bEgk7M96T8JsFKVlGm200GwP_iBOtQQz2HSmeIJAjIQ,31988
|
118
118
|
biolib/compute_node/job_worker/executors/docker_types.py,sha256=Hh8SwQYBLdIMGWgITwD2fzoo_sbW2ESx1G8j9Zq2n30,216
|
119
119
|
biolib/compute_node/job_worker/executors/tars/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
120
120
|
biolib/compute_node/job_worker/executors/types.py,sha256=dlp7p8KKkd19nC68o-RuAzRBhpdYFMWKg-__LFjvscs,1611
|
@@ -157,8 +157,8 @@ biolib/utils/cache_state.py,sha256=u256F37QSRIVwqKlbnCyzAX4EMI-kl6Dwu6qwj-Qmag,3
|
|
157
157
|
biolib/utils/multipart_uploader.py,sha256=XvGP1I8tQuKhAH-QugPRoEsCi9qvbRk-DVBs5PNwwJo,8452
|
158
158
|
biolib/utils/seq_util.py,sha256=rImaghQGuIqTVWks6b9P2yKuN34uePUYPUFW_Wyoa4A,6737
|
159
159
|
biolib/utils/zip/remote_zip.py,sha256=0wErYlxir5921agfFeV1xVjf29l9VNgGQvNlWOlj2Yc,23232
|
160
|
-
pybiolib-1.2.
|
161
|
-
pybiolib-1.2.
|
162
|
-
pybiolib-1.2.
|
163
|
-
pybiolib-1.2.
|
164
|
-
pybiolib-1.2.
|
160
|
+
pybiolib-1.2.1242.dist-info/METADATA,sha256=YDfYYUmotb0VAZWDAOq_kGDqEUIjyWJ9jeg4cKmLsNM,1644
|
161
|
+
pybiolib-1.2.1242.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
162
|
+
pybiolib-1.2.1242.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
|
163
|
+
pybiolib-1.2.1242.dist-info/licenses/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
|
164
|
+
pybiolib-1.2.1242.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|