You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`region_name`| varchar | Target cell for this outbox |
77
77
78
78
### Resolving Enum Values
79
79
@@ -92,10 +92,10 @@ When generating SQL for a developer, **print the query to the terminal** so they
92
92
2. Comments mapping integer values to their enum names
93
93
3. Reasonable `LIMIT` clauses to avoid overwhelming output
94
94
95
-
#### Find stuck shards (region)
95
+
#### Find stuck shards (cell)
96
96
97
97
```sql
98
-
-- Find region outbox shards stuck in backoff
98
+
-- Find cell outbox shards stuck in backoff
99
99
-- shard_scope: 0 = ORGANIZATION_SCOPE, 1 = USER_SCOPE, etc.
100
100
-- category: see OutboxCategory enum in category.py
101
101
SELECT
@@ -199,7 +199,7 @@ LIMIT 10;
199
199
200
200
When a developer asks you to debug stuck outboxes:
201
201
202
-
1.**Determine the table**: Ask which model or direction is involved, or infer from context. Use `sentry_regionoutbox` for region models, `sentry_controloutbox` for control models.
202
+
1.**Determine the table**: Ask which model or direction is involved, or infer from context. Use `sentry_regionoutbox` for cell models, `sentry_controloutbox` for control models.
203
203
2.**Resolve enum values**: Read `src/sentry/hybridcloud/outbox/category.py` to get the integer values for the relevant `OutboxCategory` and `OutboxScope`.
204
204
3.**Construct the query**: Use the templates above, substituting resolved values. Always add comments with the human-readable enum names.
205
205
4.**Print to terminal**: Output the final SQL so the developer can copy it. Do NOT attempt to run it — you don't have production database access.
@@ -212,10 +212,10 @@ When a developer asks you to debug stuck outboxes:
212
212
The `should_skip_shard()` method checks these options:
213
213
214
214
```python
215
-
# Skip specific organization shards (region outboxes)
215
+
# Skip specific organization shards (cell outboxes)
0 commit comments