nomad_pydantic.NomadConfiguration¶
- pydantic model nomad_pydantic.NomadConfiguration[source]¶
Bases:
BaseModelA Nomad job together with its local JSON artifact and CLI settings.
- field path: Path | None = None¶
- field working_dir: Path | None = None¶
- field command_timeout: float | None = 60¶
- classmethod from_file(path: str | Path, **values: Any) NomadConfiguration[source]¶
- classmethod load(config_dir: str | Path, config_name: str, *, overrides: list[str] | None = None, **values: Any) NomadConfiguration[source]¶
Compose a Hydra YAML configuration and validate it.
- client(**values: Any) NomadClient[source]¶
- register(**values: Any) CommandResult[source]¶
- start(**values: Any) CommandResult[source]¶
- restart(**values: Any) CommandResult[source]¶
- force_periodic(**values: Any) CommandResult[source]¶
- stop(*, purge: bool = False, **values: Any) CommandResult[source]¶