Skip to content

Commit 78122a6

Browse files
committed
Fix on coiled.
1 parent 3c8461e commit 78122a6

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

icechunk-python/benchmarks/runner.py

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -229,15 +229,17 @@ def initialize(self) -> None:
229229

230230
ckwargs = self.get_coiled_kwargs()
231231
# repeated calls are a no-op!
232-
coiled.create_software_environment(
233-
name=ckwargs["software"],
234-
workspace=ckwargs["workspace"],
235-
conda={
236-
"channels": ["conda-forge"],
237-
"dependencies": ["rust", "python=3.12", "pip"],
238-
},
239-
pip=[self.pip_github_url, "coiled", *deps],
240-
)
232+
envs = coiled.list_software_environments(workspace=ckwargs["workspace"])
233+
if ckwargs["software"] not in envs:
234+
coiled.create_software_environment(
235+
name=ckwargs["software"],
236+
workspace=ckwargs["workspace"],
237+
conda={
238+
"channels": ["conda-forge"],
239+
"dependencies": ["rust", "python=3.12", "pip"],
240+
},
241+
pip=[self.pip_github_url, "coiled", *deps],
242+
)
241243
super().initialize()
242244

243245
def execute(self, cmd, **kwargs):

0 commit comments

Comments
 (0)