Skip to content

Commit 8646515

Browse files
authored
map: Add support for skipping installation (#19390)
1 parent 89ff87d commit 8646515

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/lightning/data/streaming/resolver.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -303,13 +303,17 @@ def _execute(
303303
if not _LIGHTNING_SDK_AVAILABLE:
304304
raise ModuleNotFoundError("The `lightning_sdk` is required.")
305305

306+
lightning_skip_install = os.getenv("LIGHTNING_SKIP_INSTALL", "")
307+
if lightning_skip_install:
308+
lightning_skip_install = f" LIGHTNING_SKIP_INSTALL={lightning_skip_install} "
309+
306310
lightning_branch = os.getenv("LIGHTNING_BRANCH", "")
307311
if lightning_branch:
308-
lightning_branch = f" LIGHTNING_BRANCH={lightning_branch}"
312+
lightning_branch = f" LIGHTNING_BRANCH={lightning_branch} "
309313

310314
studio = Studio()
311315
job = studio._studio_api.create_data_prep_machine_job(
312-
command or f"cd {os.getcwd()} &&{lightning_branch} python {' '.join(sys.argv)}",
316+
command or f"cd {os.getcwd()} &&{lightning_skip_install}{lightning_branch} python {' '.join(sys.argv)}",
313317
name=name,
314318
num_instances=num_nodes,
315319
studio_id=studio._studio.id,

0 commit comments

Comments
 (0)