Deploy AIOS web (React glide grid + FastAPI slice)
Browse files- RELEASES.json +1 -1
- VERSION +1 -1
- platform/harness/datastore.py +7 -1
- web/public/AIOS_DEPLOY_RECEIPT +1 -1
RELEASES.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
{
|
| 2 |
-
"current": "
|
| 3 |
"releases": []
|
| 4 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"current": "6833c607bf",
|
| 3 |
"releases": []
|
| 4 |
}
|
VERSION
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
6833c607bf
|
platform/harness/datastore.py
CHANGED
|
@@ -165,7 +165,13 @@ def apply_limits(con):
|
|
| 165 |
con.execute(f"SET memory_limit='{memory}'")
|
| 166 |
if threads.isdigit() and int(threads) > 0:
|
| 167 |
con.execute(f"SET threads={int(threads)}")
|
| 168 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 169 |
con.execute(f"SET max_temp_directory_size='{spill}'")
|
| 170 |
return con
|
| 171 |
|
|
|
|
| 165 |
con.execute(f"SET memory_limit='{memory}'")
|
| 166 |
if threads.isdigit() and int(threads) > 0:
|
| 167 |
con.execute(f"SET threads={int(threads)}")
|
| 168 |
+
# DuckDB refuses any temp_directory SET, the same path included, once the instance has spilled.
|
| 169 |
+
if con.execute("SELECT current_setting('temp_directory')").fetchone()[0] != str(temp):
|
| 170 |
+
try:
|
| 171 |
+
con.execute("SET temp_directory='" + str(temp).replace("'", "''") + "'")
|
| 172 |
+
except duckdb.NotImplementedException as exc:
|
| 173 |
+
if "Cannot switch temporary directory" not in str(exc):
|
| 174 |
+
raise
|
| 175 |
con.execute(f"SET max_temp_directory_size='{spill}'")
|
| 176 |
return con
|
| 177 |
|
web/public/AIOS_DEPLOY_RECEIPT
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
afbd3df2cba1f0879977eaa3ca6dcf12ea567fb950878b764070d20d50fd9a13
|