coiled 1.110.1.dev10__tar.gz → 1.110.1.dev12__tar.gz
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.
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/PKG-INFO +1 -1
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/batch.py +20 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/batch/run.py +111 -3
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/.gitignore +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/LICENSE +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/README.md +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/__init__.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/__main__.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/analytics.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/auth.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/capture_environment.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/__init__.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/batch/__init__.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/batch/list.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/batch/logs.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/batch/status.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/batch/wait.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/cluster/__init__.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/cluster/azure_logs.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/cluster/better_logs.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/cluster/crud.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/cluster/get_address.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/cluster/list.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/cluster/logs.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/cluster/metrics.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/cluster/ssh.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/cluster/utils.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/config.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/core.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/curl.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/diagnostics.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/env.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/hello/__init__.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/hello/examples/__init__.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/hello/examples/exit.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/hello/examples/hello_world.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/hello/examples/nyc_parquet.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/hello/examples/pytorch.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/hello/examples/xarray_nwm.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/hello/hello.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/hello/scripts/fill_ipython.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/hello/scripts/nyc_parquet.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/hello/scripts/pytorch.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/hello/scripts/xarray_nwm.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/hello/utils.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/login.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/notebook/__init__.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/notebook/notebook.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/package_sync.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/prefect.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/prefect_serve.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/run.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/setup/__init__.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/setup/amp.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/setup/aws.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/setup/azure.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/setup/entry.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/setup/gcp.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/setup/prometheus.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/setup/util.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/sync.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cli/utils.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/cluster.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/coiled.yaml +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/compatibility.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/config.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/context.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/core.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/credentials/__init__.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/credentials/aws.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/credentials/google.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/errors.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/exceptions.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/extensions/__init__.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/extensions/prefect/__init__.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/extensions/prefect/runners.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/extensions/prefect/workers.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/function.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/plugins.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/prefect.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/pypi_conda_map.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/scan.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/software.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/software_utils.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/spans.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/spark.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/types.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/utils.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/v2/__init__.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/v2/cluster.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/v2/core.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/v2/cwi_log_link.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/v2/states.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/v2/widgets/__init__.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/v2/widgets/interface.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/v2/widgets/rich.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/v2/widgets/util.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/coiled/websockets.py +0 -0
- {coiled-1.110.1.dev10 → coiled-1.110.1.dev12}/pyproject.toml +0 -0
|
@@ -35,6 +35,12 @@ def run(
|
|
|
35
35
|
task_on_scheduler: bool | None = None,
|
|
36
36
|
array: str | None = None,
|
|
37
37
|
scheduler_task_array: str | None = None,
|
|
38
|
+
map_over_values: list[str] | None = None,
|
|
39
|
+
map_over_file: str | None = None,
|
|
40
|
+
map_over_input_var: str | None = None,
|
|
41
|
+
map_over_task_var_dict: str | None = None,
|
|
42
|
+
map_over_delimiter: str | None = None,
|
|
43
|
+
map_over_task_vars: list[dict[str, str]] | None = None,
|
|
38
44
|
max_workers: int | None = None,
|
|
39
45
|
wait_for_ready_cluster: bool | None = None,
|
|
40
46
|
forward_aws_credentials: bool | None = None,
|
|
@@ -48,6 +54,13 @@ def run(
|
|
|
48
54
|
"""Submit a batch job to run on Coiled.
|
|
49
55
|
|
|
50
56
|
See ``coiled batch run --help`` for documentation.
|
|
57
|
+
|
|
58
|
+
Additional Parameters
|
|
59
|
+
---------------------
|
|
60
|
+
map_over_task_vars
|
|
61
|
+
takes a list of dictionaries, so you can specify multiple environment variables for each task.
|
|
62
|
+
For example, ``[{"FOO": 1, "BAR": 2}, {"FOO": 3, "BAR": 4}]`` will pass ``FOO=1 BAR=2`` to one task and
|
|
63
|
+
``FOO=3 BAR=4`` to another.
|
|
51
64
|
"""
|
|
52
65
|
if isinstance(command, str):
|
|
53
66
|
command = shlex.split(command)
|
|
@@ -81,6 +94,13 @@ def run(
|
|
|
81
94
|
task_on_scheduler=task_on_scheduler,
|
|
82
95
|
array=array,
|
|
83
96
|
scheduler_task_array=scheduler_task_array,
|
|
97
|
+
# for CLI, map_over_values is a single string that needs to be split
|
|
98
|
+
map_over_split_values=map_over_values,
|
|
99
|
+
map_over_file=map_over_file,
|
|
100
|
+
map_over_input_var=map_over_input_var,
|
|
101
|
+
map_over_task_var_dict=map_over_task_var_dict,
|
|
102
|
+
map_over_delimiter=map_over_delimiter,
|
|
103
|
+
map_over_task_vars=map_over_task_vars, # not exposed in CLI
|
|
84
104
|
max_workers=max_workers,
|
|
85
105
|
wait_for_ready_cluster=wait_for_ready_cluster,
|
|
86
106
|
forward_aws_credentials=forward_aws_credentials,
|
|
@@ -101,6 +101,11 @@ def handle_possible_implicit_file(implicit_file):
|
|
|
101
101
|
"remote_path": f"/scratch/{remote_rel_dir}{remote_base}",
|
|
102
102
|
"content": file_content,
|
|
103
103
|
}
|
|
104
|
+
elif any(implicit_file.endswith(t) for t in UPLOAD_FILE_TYPES):
|
|
105
|
+
console.print(
|
|
106
|
+
f"[orange1]WARNING:[/orange1] {implicit_file} appears to be a filename, "
|
|
107
|
+
"but this file not found locally and will not be copied to VMs",
|
|
108
|
+
)
|
|
104
109
|
|
|
105
110
|
|
|
106
111
|
def search_content_for_implicit_files(f: dict):
|
|
@@ -284,6 +289,46 @@ def get_kwargs_from_header(f: dict, click_params: list):
|
|
|
284
289
|
),
|
|
285
290
|
)
|
|
286
291
|
# batch specific options
|
|
292
|
+
@click.option(
|
|
293
|
+
"--map-over-values",
|
|
294
|
+
default=None,
|
|
295
|
+
type=str,
|
|
296
|
+
help=(
|
|
297
|
+
"A list of values such that for each value, a task will be run with that value as the input. "
|
|
298
|
+
"If you specify ``--map-over-values 'first,second,third'``, then batch will run three tasks with inputs "
|
|
299
|
+
"'first', 'second', and 'third'. By default the input is passed to the task in the ``COILED_BATCH_TASK_INPUT`` "
|
|
300
|
+
"environment variable, so one task will get ``COILED_BATCH_TASK_INPUT=first`` and so on."
|
|
301
|
+
),
|
|
302
|
+
)
|
|
303
|
+
@click.option(
|
|
304
|
+
"--map-over-file",
|
|
305
|
+
default=None,
|
|
306
|
+
type=str,
|
|
307
|
+
help=(
|
|
308
|
+
"Like ``--map-over--values``, but instead of specifying the string of values directly, you specify the path "
|
|
309
|
+
"to a file with the values. Note that by default, each line in the file is treated as an individual value; "
|
|
310
|
+
"this can be controlled with the ``--map-over-delimiter`` option."
|
|
311
|
+
),
|
|
312
|
+
)
|
|
313
|
+
@click.option(
|
|
314
|
+
"--map-over-input-var",
|
|
315
|
+
default=None,
|
|
316
|
+
type=str,
|
|
317
|
+
help=(
|
|
318
|
+
"The value from --map-over-values or --map-over-files is exposed to the task as an environment variable. "
|
|
319
|
+
"By default, the environment variable is ``COILED_BATCH_TASK_INPUT``, but you can specify a different "
|
|
320
|
+
"name for the environment variable using this option."
|
|
321
|
+
),
|
|
322
|
+
)
|
|
323
|
+
@click.option(
|
|
324
|
+
"--map-over-delimiter",
|
|
325
|
+
default=None,
|
|
326
|
+
type=str,
|
|
327
|
+
help=(
|
|
328
|
+
"Delimiter for splitting the string from ``--map-over-values`` or the file contents from ``--map-over-file`` "
|
|
329
|
+
"into individual values. By default this is ',' for ``--map-over-values`` and newline for ``--map-over-file``."
|
|
330
|
+
),
|
|
331
|
+
)
|
|
287
332
|
@click.option(
|
|
288
333
|
"--ntasks",
|
|
289
334
|
"--n-tasks",
|
|
@@ -395,6 +440,15 @@ def _batch_run(default_kwargs, logger=None, from_cli=False, **kwargs) -> dict:
|
|
|
395
440
|
# Handle command as string case (e.g. `coiled batch run "python myscript.py"`)
|
|
396
441
|
if len(command) == 1:
|
|
397
442
|
command = shlex.split(command[0])
|
|
443
|
+
# unescape $ so that if someone has `echo "FOO is \$FOO"` this will be run as `echo "FOO is $FOO"`
|
|
444
|
+
command = [
|
|
445
|
+
part.replace(
|
|
446
|
+
r"\$",
|
|
447
|
+
"$",
|
|
448
|
+
)
|
|
449
|
+
for part in command
|
|
450
|
+
]
|
|
451
|
+
|
|
398
452
|
# if user tries `coiled batch run foo.py --bar` they probably want to
|
|
399
453
|
# run `python foo.py --bar` rather than `foo.py --bar`
|
|
400
454
|
if command[0].endswith(".py"):
|
|
@@ -425,6 +479,59 @@ def _batch_run(default_kwargs, logger=None, from_cli=False, **kwargs) -> dict:
|
|
|
425
479
|
elif isinstance(val, list) and isinstance(kwargs[key], (list, tuple)):
|
|
426
480
|
kwargs[key] = [*kwargs[key], *val]
|
|
427
481
|
|
|
482
|
+
task_env_for_job_spec = {}
|
|
483
|
+
|
|
484
|
+
if kwargs.get("map_over_task_vars"):
|
|
485
|
+
# for the Python API, you can explicitly specify multiple environment variables and values per task
|
|
486
|
+
# e.g., map_over_task_vars=[{"FOO": "1", "BAR": "2"}, {"FOO": "3", "BAR": "4"}]
|
|
487
|
+
# will run two tasks, the first will have FOO=1 BAR=2, the second will have FOO=3 BAR=4
|
|
488
|
+
|
|
489
|
+
if (
|
|
490
|
+
kwargs.get("map_over_values")
|
|
491
|
+
or kwargs.get("map_over_file")
|
|
492
|
+
or kwargs["ntasks"] is not None
|
|
493
|
+
or kwargs["array"] is not None
|
|
494
|
+
):
|
|
495
|
+
raise ValueError(
|
|
496
|
+
"`map_over_task_vars` keyword argument cannot be combined with "
|
|
497
|
+
"map_over_values, map_over_file, n_tasks, or array keyword arguments"
|
|
498
|
+
)
|
|
499
|
+
|
|
500
|
+
task_env_for_job_spec = {"task_map_env_vars_and_vals": kwargs["map_over_task_vars"]}
|
|
501
|
+
kwargs["ntasks"] = len(task_env_for_job_spec)
|
|
502
|
+
|
|
503
|
+
elif kwargs.get("map_over_values") or kwargs.get("map_over_file") or kwargs.get("map_over_split_values"):
|
|
504
|
+
if kwargs["ntasks"] is not None:
|
|
505
|
+
raise ValueError("You cannot specify ntasks while using map-over (tasks are determined by map inputs)")
|
|
506
|
+
if kwargs["array"] is not None:
|
|
507
|
+
raise ValueError("You cannot specify array while using map-over (tasks are determined by map inputs)")
|
|
508
|
+
if (kwargs.get("map_over_values") or kwargs.get("map_over_split_values")) and kwargs.get("map_over_file"):
|
|
509
|
+
raise ValueError("You cannot specify both map-over-values and map-over-file")
|
|
510
|
+
|
|
511
|
+
if kwargs.get("map_over_split_values"):
|
|
512
|
+
# for the Python API, we get a list rather than a string that needs to be split
|
|
513
|
+
input_values = kwargs["map_over_split_values"]
|
|
514
|
+
else:
|
|
515
|
+
default_delim = ","
|
|
516
|
+
raw_map_input = kwargs.get("map_over_values")
|
|
517
|
+
if kwargs.get("map_over_file"):
|
|
518
|
+
default_delim = "\n"
|
|
519
|
+
with open(kwargs["map_over_file"]) as f:
|
|
520
|
+
raw_map_input = f.read()
|
|
521
|
+
|
|
522
|
+
if not raw_map_input:
|
|
523
|
+
raise ValueError("No values to map over")
|
|
524
|
+
|
|
525
|
+
input_values = raw_map_input.split(kwargs.get("map_over_delimiter") or default_delim)
|
|
526
|
+
|
|
527
|
+
input_var_name = kwargs.get("map_over_input_var") or "COILED_BATCH_TASK_INPUT"
|
|
528
|
+
|
|
529
|
+
task_env_for_job_spec = {
|
|
530
|
+
"task_map_env_var": input_var_name,
|
|
531
|
+
"task_map_env_vals": input_values,
|
|
532
|
+
}
|
|
533
|
+
kwargs["ntasks"] = len(input_values)
|
|
534
|
+
|
|
428
535
|
# extra parsing/validation of options
|
|
429
536
|
if kwargs["ntasks"] is not None and kwargs["array"] is not None:
|
|
430
537
|
raise ValueError("You cannot specify both `--ntasks` and `--array`")
|
|
@@ -629,13 +736,14 @@ def _batch_run(default_kwargs, logger=None, from_cli=False, **kwargs) -> dict:
|
|
|
629
736
|
with coiled.Cloud(workspace=kwargs["workspace"]) as cloud:
|
|
630
737
|
# Create a job
|
|
631
738
|
job_spec = {
|
|
632
|
-
"user_command":
|
|
739
|
+
"user_command": " ".join(command), # don't use shlex because we don't things like `$foo` or `&&` escaped
|
|
633
740
|
"user_files": user_files,
|
|
634
741
|
"workspace": cloud.default_workspace,
|
|
635
742
|
**job_array_kwargs,
|
|
636
743
|
"scheduler_task_array": scheduler_task_ids,
|
|
637
744
|
"env_vars": job_env_vars,
|
|
638
745
|
"secret_env_vars": job_secret_vars,
|
|
746
|
+
**task_env_for_job_spec,
|
|
639
747
|
"wait_for_ready_cluster": kwargs["wait_for_ready_cluster"],
|
|
640
748
|
# For non-prefect batch jobs, set workdir to the same place
|
|
641
749
|
# where user's local files are copied onto the cloud VM.
|
|
@@ -668,7 +776,7 @@ def _batch_run(default_kwargs, logger=None, from_cli=False, **kwargs) -> dict:
|
|
|
668
776
|
|
|
669
777
|
if logger:
|
|
670
778
|
message = f"""
|
|
671
|
-
Command: {
|
|
779
|
+
Command: {" ".join(command)}
|
|
672
780
|
Cluster ID: {cluster.cluster_id}
|
|
673
781
|
URL: {cluster.details_url}
|
|
674
782
|
Tasks: {n_tasks}
|
|
@@ -685,7 +793,7 @@ Tasks: {n_tasks}
|
|
|
685
793
|
else:
|
|
686
794
|
status_command = f"coiled.batch.status({cluster.cluster_id})"
|
|
687
795
|
message = f"""
|
|
688
|
-
[bold]Command[/]: [bright_blue]{
|
|
796
|
+
[bold]Command[/]: [bright_blue]{" ".join(command)}[/]
|
|
689
797
|
[bold]Cluster ID[/]: [bright_blue]{cluster.cluster_id}[/]
|
|
690
798
|
[bold]URL[/]: [link][bright_blue]{cluster.details_url}[/bright_blue][/link]
|
|
691
799
|
[bold]Tasks[/]: [bright_blue]{n_tasks}[/]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|