add start stop

This commit is contained in:
Aron Petau 2026-01-02 13:41:21 +01:00
parent c68ee12d4e
commit 29a3f629e2
4 changed files with 69 additions and 3 deletions

View file

@ -139,6 +139,13 @@ async def main() -> None:
last_clean = now
try:
# Check if monitoring is enabled before fetching listings
if not state_manager.is_monitoring_enabled():
logger.debug("Monitoring is paused, skipping listing check")
await asyncio.sleep(CHECK_INTERVAL)
_flush_rotating_file_handlers()
continue
current_listings = await app_handler.fetch_listings()
except Exception as e:
logger.error(f"💥 Browser crash: {e}")