Command exited with code 0. Command output: asyncio.create_task(self._dispatch_fb_batch(user_id, body, sender)) if event_key: ws.recent_fb_events.append(event_key) if len(ws.recent_fb_events) > 100: ws.recent_fb_events[:] = ws.recent_fb_events[-100:] ws.last_processed_ts = max(ws.last_processed_ts, ts_val) changed = True if changed: self.save_workspace(ws) await asyncio.sleep(poll_interval) except asyncio.CancelledError: break except Exception as exc: consecutive_errors += 1 err_text = str(exc).lower() if "name or service not known" in err_text or "cannot connect to host" in err_text or "nodename" in err_text: if consecutive_errors >= 5: log(f"[fb poll {user_id}] Persistent host failure. Auto-pausing.") ws.active = False self.save_workspace(ws) await self.send(user_id, fmt_msg("Firebase Paused", "⚠️ Host domain could not be reached repeatedly. Paused automatically.", error=True)) break log(f"[fb poll {user_id}] Host connection/lookup failed: {exc}. Backing off 30s...") await asyncio.sleep(30) else: log(f"[fb poll {user_id}] {exc}") await asyncio.sleep(max(2.0, poll_interval * 2)) def _latest_remote_ts(self, data: dict[str, Any]) -> int: latest_ts = 0 for key in data.keys(): try: latest_ts = max(latest_ts, int(key)) except Exception: continue return latest_ts