# status()

Canonical URL: https://developers.iagenify.com/de/sdk/ref/compute/status/
Language: de

`api.compute.status() → Promise<{ available, reason, workspace, network }>`

Check whether the isolated compute runner is available before offering a command or terminal action.

Status: read-only · does not start a container

```javascript
const status = await api.compute.status();
if (!status.available) {
  console.log("Compute is unavailable:", status.reason);
} else {
  console.log(status.workspace, status.network);
}
```

## Returned fields {#returns}

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `available` | boolean |  | Whether the runner currently accepts compute requests. |
| `reason` | string|null |  | A public reason when the runner is unavailable; otherwise null. |
| `workspace` | string |  | Workspace mount path. Currently `/workspace`. |
| `network` | string |  | Network policy reported by the runner. The current service reports `none`. |

An available result is a point-in-time check, not a reservation. The runner can become unavailable before a later command starts; handle that request's error as well.

```python
status = api.compute.status()
if not status.get("available"):
    print("Compute is unavailable:", status.get("reason"))
else:
    print(status["workspace"], status["network"])
```
