Enchance weblog
This commit is contained in:
+6
-3
@@ -589,7 +589,9 @@ class ContinuousScrapeManager:
|
||||
if not channels:
|
||||
self._log("No channels configured for continuous scraping.")
|
||||
else:
|
||||
self._log(f"Starting iteration for {len(channels)} channel(s).")
|
||||
self._log("=" * 50)
|
||||
self._log(f"🚀 Starting iteration for {len(channels)} channel(s).")
|
||||
self._log("-" * 50)
|
||||
buffer = io.StringIO()
|
||||
try:
|
||||
with (
|
||||
@@ -605,7 +607,8 @@ class ContinuousScrapeManager:
|
||||
self.status["last_iteration_at"] = utc_now_iso()
|
||||
self.status["last_finished_at"] = utc_now_iso()
|
||||
self.status["last_error"] = None
|
||||
self._log("Iteration finished.")
|
||||
self._log("-" * 50)
|
||||
self._log("✅ Iteration finished.")
|
||||
except Exception as exc:
|
||||
output = buffer.getvalue().strip()
|
||||
if output:
|
||||
@@ -616,7 +619,7 @@ class ContinuousScrapeManager:
|
||||
self.status["last_error"] = str(exc)
|
||||
|
||||
sleep_seconds = max(5, interval_minutes * 60)
|
||||
self._log(f"Sleeping for {interval_minutes} minute(s).")
|
||||
self._log(f"💤 Sleeping for {interval_minutes} minute(s).")
|
||||
interrupted = self.stop_event.wait(timeout=sleep_seconds)
|
||||
if interrupted:
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user