trainwave-cli 0.1.2__tar.gz → 0.1.4__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.
- {trainwave_cli-0.1.2 → trainwave_cli-0.1.4}/PKG-INFO +1 -1
- {trainwave_cli-0.1.2 → trainwave_cli-0.1.4}/pyproject.toml +1 -1
- {trainwave_cli-0.1.2 → trainwave_cli-0.1.4}/trainwave_cli/api.py +1 -0
- {trainwave_cli-0.1.2 → trainwave_cli-0.1.4}/trainwave_cli/cli/jobs.py +4 -2
- {trainwave_cli-0.1.2 → trainwave_cli-0.1.4}/README.md +0 -0
- {trainwave_cli-0.1.2 → trainwave_cli-0.1.4}/trainwave_cli/__init__.py +0 -0
- {trainwave_cli-0.1.2 → trainwave_cli-0.1.4}/trainwave_cli/cli/auth.py +0 -0
- {trainwave_cli-0.1.2 → trainwave_cli-0.1.4}/trainwave_cli/cli/offers.py +0 -0
- {trainwave_cli-0.1.2 → trainwave_cli-0.1.4}/trainwave_cli/config/config.py +0 -0
- {trainwave_cli-0.1.2 → trainwave_cli-0.1.4}/trainwave_cli/io.py +0 -0
- {trainwave_cli-0.1.2 → trainwave_cli-0.1.4}/trainwave_cli/main.py +0 -0
- {trainwave_cli-0.1.2 → trainwave_cli-0.1.4}/trainwave_cli/utils.py +0 -0
- {trainwave_cli-0.1.2 → trainwave_cli-0.1.4}/trainwave_cli/xceptions.py +0 -0
|
@@ -45,7 +45,7 @@ async def launch( # noqa
|
|
|
45
45
|
cpus: Annotated[int, typer.Option()] = 0,
|
|
46
46
|
gpus: Annotated[int, typer.Option()] = 0,
|
|
47
47
|
gpu_type: Annotated[str, typer.Option()] = "",
|
|
48
|
-
compliance_soc2: Annotated[bool, typer.Option()] =
|
|
48
|
+
compliance_soc2: Annotated[bool, typer.Option()] = None,
|
|
49
49
|
) -> None:
|
|
50
50
|
api_client = Api(config.api_key, config.endpoint, project)
|
|
51
51
|
# Interpolate environe variables
|
|
@@ -69,8 +69,9 @@ async def launch( # noqa
|
|
|
69
69
|
"gpus": gpus,
|
|
70
70
|
"gpu_type": gpu_type,
|
|
71
71
|
"env_vars": env_vars,
|
|
72
|
-
"compliance_soc2": compliance_soc2,
|
|
73
72
|
}
|
|
73
|
+
if compliance_soc2 is not None:
|
|
74
|
+
conf["compliance_soc2"] = compliance_soc2
|
|
74
75
|
|
|
75
76
|
if expires != "":
|
|
76
77
|
expires_time = pytimeparse.parse(expires)
|
|
@@ -111,6 +112,7 @@ async def launch( # noqa
|
|
|
111
112
|
"value": [truncate_string(str(co[k]), 50) for k in tab_keys],
|
|
112
113
|
}
|
|
113
114
|
logger.info("\nMatched machine\n" + tabulate(tab_values, headers="keys") + "\n")
|
|
115
|
+
logger.info(f"Cost per hour for this job: ${job.cost_per_hour:.2f}")
|
|
114
116
|
logger.info(f"Job created: {job.rid} ({job.id})")
|
|
115
117
|
except Exception as e:
|
|
116
118
|
traceback.print_exc()
|
|
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
|