fsanyoto commited on
Commit
df0d810
·
verified ·
1 Parent(s): 30e9adc

Deploy AIOS web (React glide grid + FastAPI slice)

Browse files
RELEASES.json CHANGED
@@ -1,4 +1,4 @@
1
  {
2
- "current": "4645cb94f",
3
  "releases": []
4
  }
 
1
  {
2
+ "current": "6833c607bf",
3
  "releases": []
4
  }
VERSION CHANGED
@@ -1 +1 @@
1
- 4645cb94f
 
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
- con.execute("SET temp_directory='" + str(temp).replace("'", "''") + "'")
 
 
 
 
 
 
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
- 747c21c582d2259434965f8d5487b2c9844d57256db977026d5598437c3492a0
 
1
+ afbd3df2cba1f0879977eaa3ca6dcf12ea567fb950878b764070d20d50fd9a13