---
title: BuildHookTimeout
description: "A timeout for the ready or validate image-build hook: 1..=3600 seconds."
---

```python
@final
class BuildHookTimeout
```

A timeout for the `ready` or `validate` image-build hook: 1..=3600 seconds.

## Constructor

```python
BuildHookTimeout(seconds: SupportsIndex)
```

A build-family timeout, or a refusal naming both ceilings.

## Properties

### `seconds`

```python
seconds: int
```

## Attributes

### `MAX_SECS`

```python
MAX_SECS: Final[int]
```

The service ceiling for this family: 3600.

## Special methods

### `__repr__`

```python
def __repr__() -> str
```

### `__str__`

```python
def __str__() -> str
```

## Provenance

This page is generated from `bindings/microvms-py/microvms.pyi` by Griffe 2.3.0, run from `site/scripts/gen-reference.mjs` on every `pnpm run sync`, so an edit made here is overwritten by the next run.

To change the page, change the doc comment in the binding's Rust source, then regenerate the declarations with `mise run stubs`. `mise run stubs:check` fails when the committed file no longer matches the source.