Skip to content

solve

solve

Narrow hardware solver for declarative executions.

SolveResult(result: HardwareResult | None, provider: Provider | None) dataclass

Hardware allocation and the provider that supplied it.

ok: bool property

Return whether a provider supplied hardware.

solve(execution: Combobulation, config: DispatchConfig | None = None, timeout: float = 30.0) -> SolveResult

Find the first configured SSH or SLURM provider that can run an execution.

Parameters:

Name Type Description Default
execution Combobulation

Declarative execution and its resource constraints.

required
config DispatchConfig | None

Dispatch inventory. When omitted, load the standard XDG or legacy configuration.

None
timeout float

Timeout in seconds for each provider's remote availability checks.

30.0

Returns:

Type Description
SolveResult

The selected hardware and provider, or an empty result when unsatisfied.