# Linear, Discord and ModelsLab tools stop waiting on a hung server

> Agno LinearTools, DiscordTools and ModelsLabTools now time out on a server that never answers, and the ModelsLab media wait ends at max_wait_time.

- Published: 2026-11-17
- Author: Ansh Rohilla
- Categories: Changelog
- Canonical: https://www.agno.com/blog/linear-discord-and-modelslab-tools-stop-waiting-on-a-hung-server
- Markdown: https://www.agno.com/blog/linear-discord-and-modelslab-tools-stop-waiting-on-a-hung-server.md

Agno's `LinearTools`, `DiscordTools` and `ModelsLabTools` now take a `timeout` and apply it to every request, so a server that never answers can no longer freeze an agent run. Linear and Discord default to 30 seconds, and ModelsLab defaults to 120. Earlier releases waited on a stalled server indefinitely.

```python
from agno.tools.discord import DiscordTools
from agno.tools.linear import LinearTools
from agno.tools.models_labs import ModelsLabTools

tools = [LinearTools(timeout=10), DiscordTools(timeout=10), ModelsLabTools(timeout=60)]
```

With `wait_for_completion=True`, `ModelsLabTools` polls ModelsLab until the media is ready. Each poll now gets only the time left before the wait ends, so a stalled poll can no longer stretch the wait past `max_wait_time`.

We pointed each toolkit at a local socket that accepts connections and never replies, a stand-in for a stalled API, and stopped watching after 10 seconds. `DiscordTools` ran with `timeout=2`, and the ModelsLab poll ran with `max_wait_time=4`.

```text
# Before
DiscordTools.get_channel_info: still waiting after 10s
ModelsLabTools._wait_for_media: still waiting after 10s
# Now
DiscordTools.get_channel_info: returned after 2.0s -> Error getting channel info: ... Read timed out. (read timeout=2)
ModelsLabTools._wait_for_media: returned after 4.0s -> False
```

See the [cookbook](https://github.com/agno-agi/agno/blob/main/cookbook/91_tools/models_lab_tools.py), and learn more about [LinearTools](https://docs.agno.com/tools/toolkits/others/linear), [DiscordTools](https://docs.agno.com/tools/toolkits/social/discord) and [ModelsLabTools](https://docs.agno.com/tools/toolkits/others/models-labs) in the documentation.
