coiled 1.126.1.dev22__py3-none-any.whl → 1.126.1.dev24__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.

Potentially problematic release.


This version of coiled might be problematic. Click here for more details.

coiled/cli/batch/run.py CHANGED
@@ -196,6 +196,7 @@ def get_kwargs_from_header(f: dict, click_params: list):
196
196
  "default is to use the entrypoint (if any) set on the image."
197
197
  ),
198
198
  )
199
+ @click.option("--run-on-host", default=None, help="Run code directly on host, not inside docker container.")
199
200
  @click.option(
200
201
  "--env",
201
202
  "-e",
@@ -773,7 +774,9 @@ def _batch_run(default_kwargs, logger=None, from_cli=False, **kwargs) -> dict:
773
774
  # if batch job is running in extra container, then we just need a pretty minimal dask container
774
775
  # so for now switch the default in that case to basic dask container
775
776
  # TODO would it be better to use a pre-built senv with our `cloud-env-run` container instead?
776
- "container": dask_container if kwargs["container"] and not kwargs["software"] else None,
777
+ "container": dask_container
778
+ if (kwargs["container"] or kwargs.get("run_on_host")) and not kwargs["software"]
779
+ else None,
777
780
  "region": kwargs["region"],
778
781
  "scheduler_options": {
779
782
  "idle_timeout": "520 weeks", # TODO allow job timeout?
@@ -829,6 +832,7 @@ def _batch_run(default_kwargs, logger=None, from_cli=False, **kwargs) -> dict:
829
832
  "pipe_to_files": bool(kwargs.get("pipe_to_files")),
830
833
  "host_setup": host_setup_content,
831
834
  "job_timeout_seconds": parse_timedelta(kwargs["job_timeout"]) if kwargs["job_timeout"] else None,
835
+ "run_in_container": not kwargs.get("run_on_host"),
832
836
  }
833
837
 
834
838
  with coiled.Cloud(workspace=kwargs["workspace"]) as cloud:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: coiled
3
- Version: 1.126.1.dev22
3
+ Version: 1.126.1.dev24
4
4
  Summary: Python client for coiled.io dask clusters
5
5
  Project-URL: Homepage, https://coiled.io
6
6
  Maintainer-email: Coiled <info@coiled.io>
@@ -42,7 +42,7 @@ coiled/cli/utils.py,sha256=cp7ToFGRpUKi6iNL6BbLjzgrgeTYSX_C55lYhaKWHHA,3479
42
42
  coiled/cli/batch/__init__.py,sha256=539CnfnqqcW7ndSufTS-Ie5FGZiElMYxE0Ptu70wo8M,660
43
43
  coiled/cli/batch/list.py,sha256=lU3mXeKUHltzpdbo7Txcd64T1-XpHE-wxTFIBoTR28w,3300
44
44
  coiled/cli/batch/logs.py,sha256=CbGK5GRjtu0UKGetKY_yTcjB-3PdHy5Xf4MLksYTE8g,1947
45
- coiled/cli/batch/run.py,sha256=Oq7fFIlIxdTHEmIZSObGd_HcyajKWZLHreVUO9jOf_o,36401
45
+ coiled/cli/batch/run.py,sha256=zdIVlX3nVNzqeVxaS3lrvZPd3vZaKSS6RauQKE0B_aw,36616
46
46
  coiled/cli/batch/status.py,sha256=cSpMRC0YHFQ18y-XEXFjTOza_OTd7mtT-NX7sRSLMhk,4193
47
47
  coiled/cli/batch/util.py,sha256=ztisJzDHpsYswrdk_hI7USUkfponI8oLhcKAa6DXJo4,1026
48
48
  coiled/cli/batch/wait.py,sha256=dEP1OH0IYteqaYU2UdrGm_vU7IDE7h3l3Cb3KBoaCCY,3879
@@ -95,8 +95,8 @@ coiled/v2/widgets/__init__.py,sha256=Bt3GHTTyri-kFUaqGRVydDM-sCg5NdNujDg2RyvgV8U
95
95
  coiled/v2/widgets/interface.py,sha256=YeMQ5qdRbbpM04x9qIg2LE1xwxyRxFbdDYnkrwHazPk,301
96
96
  coiled/v2/widgets/rich.py,sha256=3rU5-yso92NdeEh3uSvEE-GwPNyp6i0Nb5PE5czXCik,28974
97
97
  coiled/v2/widgets/util.py,sha256=Y8qpGqwNzqfCzgyRFRy7vcscBoXqop-Upi4HLPpXLgg,3120
98
- coiled-1.126.1.dev22.dist-info/METADATA,sha256=fHy7uaMLKLj6D2gzE_ug9TCjGCyO046n0TsQ0Ukh6ZA,2182
99
- coiled-1.126.1.dev22.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
100
- coiled-1.126.1.dev22.dist-info/entry_points.txt,sha256=C8dz1ST_bTlTO-kNvuHBJQma9PyJPotg0S4xpPt5aHY,47
101
- coiled-1.126.1.dev22.dist-info/licenses/LICENSE,sha256=ZPwVR73Biwm3sK6vR54djCrhaRiM4cAD2zvOQZV8Xis,3859
102
- coiled-1.126.1.dev22.dist-info/RECORD,,
98
+ coiled-1.126.1.dev24.dist-info/METADATA,sha256=jwbpkwUpuExFxvAp_f4b9pYsHC3HbMpgcGwHkUQUPg8,2182
99
+ coiled-1.126.1.dev24.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
100
+ coiled-1.126.1.dev24.dist-info/entry_points.txt,sha256=C8dz1ST_bTlTO-kNvuHBJQma9PyJPotg0S4xpPt5aHY,47
101
+ coiled-1.126.1.dev24.dist-info/licenses/LICENSE,sha256=ZPwVR73Biwm3sK6vR54djCrhaRiM4cAD2zvOQZV8Xis,3859
102
+ coiled-1.126.1.dev24.dist-info/RECORD,,