Skip to content

Commit e955c6b

Browse files
Add: Fix Bruin seed timeout with ingestr/DuckDB
Closes #212
1 parent d990549 commit e955c6b

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
id: 79792b53fc
3+
question: Why does my Bruin seed asset fail with a timeout error related to ingestr
4+
or duckdb installation?
5+
sort_order: 6
6+
---
7+
8+
### Summary
9+
Bruin seed assets can fail with a timeout when Bruin dynamically installs the ingestr package and the DuckDB wheel during execution. If the network is slow or unstable, the installer steps may time out, causing the pipeline to fail.
10+
11+
### Cause
12+
- Bruin uses uv to install required dependencies at run time.
13+
- The ingestr package and the DuckDB wheel are downloaded during seed asset execution.
14+
- Slow or unreliable network connectivity can cause installation to exceed the timeout.
15+
16+
### Solutions
17+
1. Increase the HTTP timeout for uv
18+
19+
```bash
20+
export UV_HTTP_TIMEOUT=120
21+
```
22+
23+
2. Ensure stable network connectivity during seed execution.
24+
25+
3. For small static lookup tables, replace the seed asset with a SQL asset using a VALUES clause to avoid dynamic dependency installation.
26+
27+
```sql
28+
SELECT * FROM (VALUES ('A'), ('B'), ('C')) AS t(col);
29+
```
30+
31+
### Notes
32+
- Using SQL VALUES can provide more deterministic local execution when the lookup table is small and static.
33+
- If you frequently depend on large non-static datasets, consider pre-bundling or caching dependencies to reduce runtime installation time.

0 commit comments

Comments
 (0)