Deploy AIOS web (React glide grid + FastAPI slice)
Browse files- RELEASES.json +1 -1
- VERSION +1 -1
- api/main.py +16 -1
- web/public/AIOS_DEPLOY_RECEIPT +1 -1
RELEASES.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
{
|
| 2 |
-
"current": "
|
| 3 |
"releases": []
|
| 4 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"current": "6ec9f3ba",
|
| 3 |
"releases": []
|
| 4 |
}
|
VERSION
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
6ec9f3ba
|
api/main.py
CHANGED
|
@@ -797,6 +797,7 @@ def _pull_amazon(why):
|
|
| 797 |
try:
|
| 798 |
from harness import amazon_store as _amazon
|
| 799 |
from harness import runtime as _runtime
|
|
|
|
| 800 |
# The existing boot/resync projection targets tenant #0. Keep credential, mirror and
|
| 801 |
# projection on that same tenant; never fall back to an operator's environment credential.
|
| 802 |
tenant_key = "royal-imports"
|
|
@@ -809,7 +810,19 @@ def _pull_amazon(why):
|
|
| 809 |
# bounded passes requeue themselves until every table is loaded. `scheduled=True` loaded
|
| 810 |
# ONE table per resync (a 4 hour cadence), so five of seven tables were never pulled, and
|
| 811 |
# the markers live in the container's mirror, so every restart began again from orders.
|
| 812 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 813 |
from core import connector_sync as _connector_sync
|
| 814 |
receipt = _connector_sync.request_sync("amazon_sp", tenant_key, requested_by="first load")
|
| 815 |
print(f"[aios-api] amazon sync ({why}): first load "
|
|
@@ -817,6 +830,8 @@ def _pull_amazon(why):
|
|
| 817 |
return True
|
| 818 |
rep = _amazon.sync(tenant_key, rt=rt, scheduled=True,
|
| 819 |
log=lambda message: print(f"[aios-api] amazon sync ({why}): {message}"))
|
|
|
|
|
|
|
| 820 |
for problem in rep.get("problems") or []:
|
| 821 |
print(f"[aios-api] amazon sync PROBLEM ({why}): {problem}")
|
| 822 |
print(f"[aios-api] amazon sync done ({why}): " + ", ".join(
|
|
|
|
| 797 |
try:
|
| 798 |
from harness import amazon_store as _amazon
|
| 799 |
from harness import runtime as _runtime
|
| 800 |
+
import routes_odoo_tables as _rot
|
| 801 |
# The existing boot/resync projection targets tenant #0. Keep credential, mirror and
|
| 802 |
# projection on that same tenant; never fall back to an operator's environment credential.
|
| 803 |
tenant_key = "royal-imports"
|
|
|
|
| 810 |
# bounded passes requeue themselves until every table is loaded. `scheduled=True` loaded
|
| 811 |
# ONE table per resync (a 4 hour cadence), so five of seven tables were never pulled, and
|
| 812 |
# the markers live in the container's mirror, so every restart began again from orders.
|
| 813 |
+
first_load_needed = _amazon.needs_first_load(tenant_key, rt=rt)
|
| 814 |
+
# D-3495: `needs_first_load` (and `sync`, below) call `restore_mirror` as their very
|
| 815 |
+
# first step, which writes the Amazon mirror tables directly on the shared datastore
|
| 816 |
+
# instance. Nothing else republished the read-through registry until the Odoo relational
|
| 817 |
+
# rebuild's `refresh_state` ran, minutes later (`_rebuild_odoo_relational`, further down
|
| 818 |
+
# this boot) — so a grid read landing in between (staging, 2026-09-29: `ut_amzn_orders`
|
| 819 |
+
# 409 for ~30 min after "Amazon mirror restored") answered stale or absent. Invalidate
|
| 820 |
+
# right here, cheaply: this only clears the registry and its built flag, so the next read
|
| 821 |
+
# (or `_sources()` below) does a fresh per-table `count(*)` probe against the mirror that
|
| 822 |
+
# was just restored — never the slow `plan`/`apply_plan` write `refresh_state` does.
|
| 823 |
+
_rot.invalidate_sources()
|
| 824 |
+
_rot._sources()
|
| 825 |
+
if first_load_needed:
|
| 826 |
from core import connector_sync as _connector_sync
|
| 827 |
receipt = _connector_sync.request_sync("amazon_sp", tenant_key, requested_by="first load")
|
| 828 |
print(f"[aios-api] amazon sync ({why}): first load "
|
|
|
|
| 830 |
return True
|
| 831 |
rep = _amazon.sync(tenant_key, rt=rt, scheduled=True,
|
| 832 |
log=lambda message: print(f"[aios-api] amazon sync ({why}): {message}"))
|
| 833 |
+
_rot.invalidate_sources()
|
| 834 |
+
_rot._sources()
|
| 835 |
for problem in rep.get("problems") or []:
|
| 836 |
print(f"[aios-api] amazon sync PROBLEM ({why}): {problem}")
|
| 837 |
print(f"[aios-api] amazon sync done ({why}): " + ", ".join(
|
web/public/AIOS_DEPLOY_RECEIPT
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
07513de2973268d8f23415e890f1110739d6390f740449f07526d1b808afcc15
|