Spaces:
Running

fsanyoto commited on
Commit
110ae17
·
verified ·
1 Parent(s): 4d2d061

Deploy AIOS web (React glide grid + FastAPI slice)

Browse files
RELEASES.json CHANGED
@@ -1,4 +1,4 @@
1
  {
2
- "current": "4941465266",
3
  "releases": []
4
  }
 
1
  {
2
+ "current": "60663c62dc",
3
  "releases": []
4
  }
VERSION CHANGED
@@ -1 +1 @@
1
- 4941465266
 
1
+ 60663c62dc
platform/harness/amazon_store.py CHANGED
@@ -609,8 +609,10 @@ def sync_plan(states, tables=None, *, now=None, slot_pass=False):
609
  recent = max(stamps.values()) if stamps else None
610
  ready = recent is None or (now - recent).total_seconds() >= REPORT_STAGGER_SECONDS
611
  oldest = datetime.min.replace(tzinfo=timezone.utc)
612
- # Freshness tables run first: a throttled tick is the newest stamp, so oldest-first starves it (SDLC 87 QI13).
613
- selected = sorted(due, key=lambda table: (table not in FRESHNESS_FIRST_TABLES, stamps.get(table, oldest),
 
 
614
  want.index(table))) if ready else []
615
  if not ready:
616
  for table in due:
@@ -787,8 +789,6 @@ RESYNC_PREFIX = "resync_"
787
  RESYNC_REPORTS_PER_PASS = FIRST_LOAD_REPORTS_PER_PASS
788
  #: Owed published months one scheduled pass asks for a month-cadence table, oldest first.
789
  MONTH_CATCH_UP_WINDOWS = 3
790
- #: Tables the business reads as current; a due pass asks them before every other report.
791
- FRESHNESS_FIRST_TABLES = ("orders", "order_items", "inventory")
792
  FIRST_LOAD_END_KEY = "sync_first_load_end"
793
  FIRST_LOAD_STATUS_KEY = "sync_first_load_status"
794
  FIRST_LOAD_DUE_KEY = "sync_first_load_next_due"
 
609
  recent = max(stamps.values()) if stamps else None
610
  ready = recent is None or (now - recent).total_seconds() >= REPORT_STAGGER_SECONDS
611
  oldest = datetime.min.replace(tzinfo=timezone.utc)
612
+ # A tick that did not finish sorts as oldest: a throttled table's stamp is its failed try, and sorting by it
613
+ # sent `inventory` behind every other report into a spent createReport burst each pass (SDLC 87 QI13).
614
+ finished = {table for table, state in states.items() if state and state.get("state") == "done"}
615
+ selected = sorted(due, key=lambda table: (stamps.get(table, oldest) if table in finished else oldest,
616
  want.index(table))) if ready else []
617
  if not ready:
618
  for table in due:
 
789
  RESYNC_REPORTS_PER_PASS = FIRST_LOAD_REPORTS_PER_PASS
790
  #: Owed published months one scheduled pass asks for a month-cadence table, oldest first.
791
  MONTH_CATCH_UP_WINDOWS = 3
 
 
792
  FIRST_LOAD_END_KEY = "sync_first_load_end"
793
  FIRST_LOAD_STATUS_KEY = "sync_first_load_status"
794
  FIRST_LOAD_DUE_KEY = "sync_first_load_next_due"
web/public/AIOS_DEPLOY_RECEIPT CHANGED
@@ -1 +1 @@
1
- fc490ba3cf6c8a5e488c922dda36a4736e58e3cd6f8f73807bbbf5153f90fb84
 
1
+ aaba35b7fdb09fbed1e8f5794e07cc481360036de908ddb5a685b9a9eb8cb30d