Repository navigation
feat(health): observe PostgreSQL scoring-job backlogs #113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
e87f941
9f5276f
222e120
5c2dbeb
d9d1daf
9896b91
cb44725
ca6ba55
6777155
a7cf405
4b8df80
6d9a2f1
7aec86d
508bd23
0bf3ef6
f255f02
2600a8a
c05a92e
9170b4c
4339822
b88194b
7356d1d
0d2338a
1bd6500
b02bc5e
1f179f6
c4a50e9
8373b7c
49dbb2b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| -- Keep readiness probes bounded as durable terminal history grows. | ||
| -- data_rights_propagation_state already has the state/time index created by 0003. | ||
| CREATE INDEX IF NOT EXISTS integration_outbox_pending_health_idx | ||
| ON integration_outbox (latest_event_at_unix_ms) | ||
| WHERE current_state = 'pending'; | ||
|
|
||
| CREATE INDEX IF NOT EXISTS integration_outbox_quarantined_health_idx | ||
| ON integration_outbox (latest_event_at_unix_ms) | ||
| WHERE current_state = 'quarantined'; | ||
|
|
||
| CREATE INDEX IF NOT EXISTS integration_consumption_active_health_idx | ||
| ON integration_consumption (latest_event_at_unix_ms) | ||
| WHERE consumption_state IN ('pending', 'processing'); | ||
|
|
||
| CREATE INDEX IF NOT EXISTS integration_consumption_quarantined_health_idx | ||
| ON integration_consumption (latest_event_at_unix_ms) | ||
| WHERE consumption_state = 'quarantined'; | ||
|
|
||
| CREATE INDEX IF NOT EXISTS data_rights_request_active_health_idx | ||
| ON data_rights_request_state (requested_at_unix_ms) | ||
| WHERE current_state IN ('requested', 'identity_verified', 'processing'); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| -- Keep scoring-job readiness probes bounded as terminal history grows. | ||
| CREATE INDEX IF NOT EXISTS scoring_job_state_active_health_idx | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Numeric prefix This PR is ready and first; keep |
||
| ON scoring_job_state (created_at) | ||
| WHERE scoring_state IN ('queued', 'leased', 'retry_scheduled'); | ||
|
|
||
| CREATE INDEX IF NOT EXISTS scoring_job_state_quarantined_health_idx | ||
| ON scoring_job_state (created_at) | ||
| WHERE scoring_state = 'quarantined'; | ||
Uh oh!
There was an error while loading. Please reload this page.