File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed
src/sentry/tasks/summaries Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change 6
6
from sentry .integrations .utils .metrics import EventLifecycleMetric
7
7
8
8
9
- class WeeklyReportFailureReason (StrEnum ):
10
- """
11
- The reason for a failure in the weekly reporting pipeline.
12
- """
13
-
14
- TIMEOUT = "timeout"
15
-
16
-
17
9
class WeeklyReportHaltReason (StrEnum ):
18
10
"""
19
11
The reason for a halt in the weekly reporting pipeline.
@@ -22,6 +14,7 @@ class WeeklyReportHaltReason(StrEnum):
22
14
EMPTY_REPORT = "empty_report"
23
15
DRY_RUN = "dry_run"
24
16
DUPLICATE_DELIVERY = "duplicate_delivery"
17
+ TIMEOUT = "timeout"
25
18
26
19
27
20
class WeeklyReportOperationType (StrEnum ):
Original file line number Diff line number Diff line change 26
26
from sentry .silo .base import SiloMode
27
27
from sentry .tasks .base import instrumented_task , retry
28
28
from sentry .tasks .summaries .metrics import (
29
- WeeklyReportFailureReason ,
30
29
WeeklyReportHaltReason ,
31
30
WeeklyReportOperationType ,
32
31
WeeklyReportSLO ,
@@ -158,7 +157,7 @@ def schedule_organizations(
158
157
159
158
batching .delete_min_org_id ()
160
159
except ProcessingDeadlineExceeded :
161
- lifecycle .record_failure ( WeeklyReportFailureReason .TIMEOUT )
160
+ lifecycle .record_halt ( WeeklyReportHaltReason .TIMEOUT )
162
161
raise
163
162
164
163
You can’t perform that action at this time.
0 commit comments