pybiolib 1.2.1232__py3-none-any.whl → 1.2.1240__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.
@@ -8,6 +8,7 @@ class RuntimeJobDataDict(TypedDict):
8
8
  job_auth_token: str
9
9
  app_uri: str
10
10
  is_environment_biolib_cloud: bool
11
+ job_reserved_machines: int
11
12
 
12
13
 
13
14
  class BioLibRuntimeError(Exception):
@@ -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(
biolib/app/app.py CHANGED
@@ -72,7 +72,7 @@ class BioLibApp:
72
72
  result_prefix: Optional[str] = None,
73
73
  timeout: Optional[int] = None,
74
74
  notify: bool = False,
75
- machine_count: Optional[int] = None,
75
+ max_workers: Optional[int] = None,
76
76
  experiment: Optional[str] = None,
77
77
  temporary_client_secrets: Optional[Dict[str, str]] = None,
78
78
  check: bool = False,
@@ -112,7 +112,7 @@ class BioLibApp:
112
112
  override_command=override_command,
113
113
  result_prefix=result_prefix,
114
114
  timeout=timeout,
115
- requested_machine_count=machine_count,
115
+ requested_machine_count=max_workers,
116
116
  temporary_client_secrets=temporary_client_secrets,
117
117
  api_client=self._api_client,
118
118
  )
@@ -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(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pybiolib
3
- Version: 1.2.1232
3
+ Version: 1.2.1240
4
4
  Summary: BioLib Python Client
5
5
  License: MIT
6
6
  License-File: LICENSE
@@ -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=BiHl4klUHr36MCpqKaUso4idHeBZfPAahLYRQrabFqA,486
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,12 +61,12 @@ 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=vRJ0YFSGYVHWULam_fnS2EHmNEm_qkrJXWdsy0n8JDA,5857
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
68
68
  biolib/app/__init__.py,sha256=cdPtcfb_U-bxb9iSL4fCEq2rpD9OjkyY4W-Zw60B0LI,37
69
- biolib/app/app.py,sha256=FGGi4jfjHpku3n60ZNJFKjEfLkrlwo1vqGdRO9nsrMw,11886
69
+ biolib/app/app.py,sha256=Jc2PwNsZDKca9NxvasI_yrnb0q_S9PrJ94lva-y2Zpc,11882
70
70
  biolib/app/search_apps.py,sha256=K4a41f5XIWth2BWI7OffASgIsD0ko8elCax8YL2igaY,1470
71
71
  biolib/biolib_api_client/__init__.py,sha256=E5EMa19wJoblwSdQPYrxc_BtIeRsAuO0L_jQweWw-Yk,182
72
72
  biolib/biolib_api_client/api_client.py,sha256=IONzXeFCHl4wuct6fqOC_7NiTv_zFy6ys0hsAtvLzTA,7578
@@ -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=Rp9QAEwSetqk0GrntiIhch573VO0Z5jeBpOsB_xcrdA,31907
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.1232.dist-info/METADATA,sha256=ywkxuXTWbAECvH3j_0ZMDD0issEBioTp_AZBn7r-i_4,1644
161
- pybiolib-1.2.1232.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
162
- pybiolib-1.2.1232.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
163
- pybiolib-1.2.1232.dist-info/licenses/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
164
- pybiolib-1.2.1232.dist-info/RECORD,,
160
+ pybiolib-1.2.1240.dist-info/METADATA,sha256=aJda-XWQsMi1JIMgQJwfbpTIiRG1SFUhwSuZCrqACxg,1644
161
+ pybiolib-1.2.1240.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
162
+ pybiolib-1.2.1240.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
163
+ pybiolib-1.2.1240.dist-info/licenses/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
164
+ pybiolib-1.2.1240.dist-info/RECORD,,