add start stop
This commit is contained in:
parent
c68ee12d4e
commit
29a3f629e2
4 changed files with 69 additions and 3 deletions
7
main.py
7
main.py
|
|
@ -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}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue