trainwave-cli 0.1.1__tar.gz → 0.1.3__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.1 → trainwave_cli-0.1.3}/PKG-INFO +1 -1
- {trainwave_cli-0.1.1 → trainwave_cli-0.1.3}/pyproject.toml +1 -1
- {trainwave_cli-0.1.1 → trainwave_cli-0.1.3}/trainwave_cli/api.py +1 -0
- {trainwave_cli-0.1.1 → trainwave_cli-0.1.3}/trainwave_cli/cli/jobs.py +4 -0
- {trainwave_cli-0.1.1 → trainwave_cli-0.1.3}/README.md +0 -0
- {trainwave_cli-0.1.1 → trainwave_cli-0.1.3}/trainwave_cli/__init__.py +0 -0
- {trainwave_cli-0.1.1 → trainwave_cli-0.1.3}/trainwave_cli/cli/auth.py +0 -0
- {trainwave_cli-0.1.1 → trainwave_cli-0.1.3}/trainwave_cli/cli/offers.py +0 -0
- {trainwave_cli-0.1.1 → trainwave_cli-0.1.3}/trainwave_cli/config/config.py +0 -0
- {trainwave_cli-0.1.1 → trainwave_cli-0.1.3}/trainwave_cli/io.py +0 -0
- {trainwave_cli-0.1.1 → trainwave_cli-0.1.3}/trainwave_cli/main.py +0 -0
- {trainwave_cli-0.1.1 → trainwave_cli-0.1.3}/trainwave_cli/utils.py +0 -0
- {trainwave_cli-0.1.1 → trainwave_cli-0.1.3}/trainwave_cli/xceptions.py +0 -0
|
@@ -45,6 +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()] = None,
|
|
48
49
|
) -> None:
|
|
49
50
|
api_client = Api(config.api_key, config.endpoint, project)
|
|
50
51
|
# Interpolate environe variables
|
|
@@ -69,6 +70,8 @@ async def launch( # noqa
|
|
|
69
70
|
"gpu_type": gpu_type,
|
|
70
71
|
"env_vars": env_vars,
|
|
71
72
|
}
|
|
73
|
+
if compliance_soc2 is not None:
|
|
74
|
+
conf["compliance_soc2"] = compliance_soc2
|
|
72
75
|
|
|
73
76
|
if expires != "":
|
|
74
77
|
expires_time = pytimeparse.parse(expires)
|
|
@@ -109,6 +112,7 @@ async def launch( # noqa
|
|
|
109
112
|
"value": [truncate_string(str(co[k]), 50) for k in tab_keys],
|
|
110
113
|
}
|
|
111
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/100:.2f}")
|
|
112
116
|
logger.info(f"Job created: {job.rid} ({job.id})")
|
|
113
117
|
except Exception as e:
|
|
114
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
|