Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7122928
D7578.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
991 B
Subscribers
None
D7578.id.diff
View Options
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
Details
Attached
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
Attached To
D7578: Add missing sentry captures in scheduler
Event Timeline
Log In to Comment