Page MenuHomeSoftware Heritage

D7578.id.diff
No OneTemporary

D7578.id.diff

diff --git a/requirements.txt b/requirements.txt
--- a/requirements.txt
+++ b/requirements.txt
@@ -12,5 +12,6 @@
psycopg2
pyyaml
requests
+sentry-sdk
setuptools
typing-extensions
diff --git a/swh/scheduler/cli/admin.py b/swh/scheduler/cli/admin.py
--- a/swh/scheduler/cli/admin.py
+++ b/swh/scheduler/cli/admin.py
@@ -12,6 +12,7 @@
from typing import List, Tuple
import click
+import sentry_sdk
from . import cli
@@ -77,6 +78,7 @@
logger.info("Scheduled %s tasks", ntasks)
except Exception:
logger.exception("Unexpected error in run_ready_tasks()")
+ sentry_sdk.capture_exception()
if not period:
break
time.sleep(period)
@@ -176,6 +178,7 @@
visit_type,
exc_info=exc_info,
)
+ sentry_sdk.capture_exception(exc_info)
dead_thread = threads[visit_type][0]
dead_thread.join(timeout=1)

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 17, 12:14 PM (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3216272

Event Timeline