Spaces:
Running
Running
sync: 194 file da Baida98/AI@4c1d2f92 (2026-08-30 07:22 UTC) (#149)
Browse files- sync: 194 file da Baida98/AI@4c1d2f92 (2026-08-30 07:22 UTC) (4f9e49b02052262c4628573019f0e2eea332eb1f)
main.py
CHANGED
|
@@ -256,8 +256,11 @@ async def startup_event():
|
|
| 256 |
asyncio.create_task(_run_auto_migration())
|
| 257 |
try:
|
| 258 |
from api.public_snapshot import write_public_dashboard_snapshot
|
| 259 |
-
asyncio.
|
| 260 |
-
|
|
|
|
|
|
|
|
|
|
| 261 |
except Exception as e:
|
| 262 |
_logger.warning(f"⚠️ BOOT: avvio public snapshot writer fallito (non bloccante): {e}")
|
| 263 |
try:
|
|
|
|
| 256 |
asyncio.create_task(_run_auto_migration())
|
| 257 |
try:
|
| 258 |
from api.public_snapshot import write_public_dashboard_snapshot
|
| 259 |
+
snapshot_ok = await asyncio.wait_for(write_public_dashboard_snapshot(), timeout=12.0)
|
| 260 |
+
if snapshot_ok:
|
| 261 |
+
_logger.info("✅ BOOT: public dashboard snapshot writer completato.")
|
| 262 |
+
else:
|
| 263 |
+
_logger.warning("⚠️ BOOT: public dashboard snapshot writer non ha persistito lo snapshot.")
|
| 264 |
except Exception as e:
|
| 265 |
_logger.warning(f"⚠️ BOOT: avvio public snapshot writer fallito (non bloccante): {e}")
|
| 266 |
try:
|