availability
availability
¶
Instrument availability checks.
Checks whether a named instrument is available for execution.
Used by:
- mzt doctor — instrument health checks
- mzt validate — warn on unavailable instruments
- Baton dispatch path — pre-flight before execution
The check is simple: 1. Is the instrument registered in the registry? 2. If it's a CLI instrument, is the binary on PATH? 3. If it's a CLI instrument, does it have a command configured?
Non-CLI instruments (http, native) are assumed available if registered.
Classes¶
Functions¶
check_instrument_available
¶
Check whether an instrument is available for execution.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
The instrument name to check. |
required |
registry
|
InstrumentRegistry
|
The instrument registry to look up profiles. |
required |
Returns:
| Type | Description |
|---|---|
bool
|
A |
str
|
When unavailable, reason describes why (for diagnostics/logging). |