Ship War Room UX, CEO inbox, mobile chat, and Agents NAS workspace.
Make A2A togglable, keep reply context while reading, route agent data to //10.4.7.11/share/Agents, and polish themes plus export-intel sync cancel.
This commit is contained in:
@@ -26,6 +26,8 @@ TED_RSS_URLS = [
|
||||
from app.export_territory_seeds import BBOX_ONLY_ISO2
|
||||
|
||||
from app.export_intel_sync_progress import (
|
||||
SyncCancelled,
|
||||
raise_if_cancelled,
|
||||
finish_job,
|
||||
get_active_job,
|
||||
job_step,
|
||||
@@ -593,6 +595,7 @@ def sync_all_priority(max_priority: int = 2, region_code: Optional[str] = None)
|
||||
cust: dict[str, Any] = {}
|
||||
contacts: dict[str, Any] = {}
|
||||
for i, c in enumerate(iso_list, start=1):
|
||||
raise_if_cancelled()
|
||||
job_step(job_id, message=f"Land {i}/{len(iso_list)}: {c}", country=c, step="osm", current=i, total=len(iso_list))
|
||||
try:
|
||||
materialize_caterer_presence(c)
|
||||
@@ -610,6 +613,10 @@ def sync_all_priority(max_priority: int = 2, region_code: Optional[str] = None)
|
||||
|
||||
report["steps"]["google_places"] = {"skipped": True, "reason": "gratis-modus: geen Google Places"}
|
||||
finish_job(job_id, result={"country_count": len(iso_list), "region": region_code})
|
||||
except SyncCancelled as exc:
|
||||
finish_job(job_id, error=str(exc))
|
||||
report["cancelled"] = True
|
||||
return report
|
||||
except Exception as exc:
|
||||
finish_job(job_id, error=str(exc))
|
||||
raise
|
||||
@@ -644,6 +651,7 @@ def sync_missing_countries(max_priority: int = 3) -> dict[str, Any]:
|
||||
contacts: dict[str, Any] = {}
|
||||
try:
|
||||
for i, c in enumerate(iso_list, start=1):
|
||||
raise_if_cancelled()
|
||||
job_step(job_id, message=f"Leeg land {i}/{len(iso_list)}: {c}", country=c, current=i, total=len(iso_list))
|
||||
try:
|
||||
materialize_caterer_presence(c)
|
||||
@@ -661,6 +669,10 @@ def sync_missing_countries(max_priority: int = 3) -> dict[str, Any]:
|
||||
"contacts": contacts,
|
||||
}
|
||||
finish_job(job_id, result={"country_count": len(iso_list)})
|
||||
except SyncCancelled as exc:
|
||||
finish_job(job_id, error=str(exc))
|
||||
report["cancelled"] = True
|
||||
return report
|
||||
except Exception as exc:
|
||||
finish_job(job_id, error=str(exc))
|
||||
raise
|
||||
@@ -743,6 +755,7 @@ def sync_customers(country_iso2: Optional[str] = None, region_code: Optional[str
|
||||
results: dict[str, Any] = {}
|
||||
try:
|
||||
for i, c in enumerate(countries, start=1):
|
||||
raise_if_cancelled()
|
||||
job_step(job_id, message=f"Horeca {i}/{len(countries)}: {c}", country=c, current=i, total=len(countries))
|
||||
try:
|
||||
results[c] = sync_osm_country(c, kinds=["customers"])
|
||||
|
||||
Reference in New Issue
Block a user