Skip to content

add slack notification for slow bundle publish - #160

Open
andre-urbani wants to merge 2 commits into
developfrom
feature/slow-publish-slack-alert
Open

add slack notification for slow bundle publish#160
andre-urbani wants to merge 2 commits into
developfrom
feature/slow-publish-slack-alert

Conversation

@andre-urbani

@andre-urbani andre-urbani commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

What

Add slack alert for when bundle publish exceeds 59 seconds
Jira - https://officefornationalstatistics.atlassian.net/browse/DIS-5302

How to review

To test locally -

  1. set BUNDLE_PUBLISH_SLOW_THRESHOLD=1ms before starting bundle-api just so that a normal speed publish will exceed it (59s delay isn't really possible to trigger manually)
  2. create a dataset, then a version
  3. approve the version
  4. create a bundle, add the content item via POST /bundles/{id}/contents, then transition it DRAFT > IN_REVIEW > APPROVED via PUT /bundles/{id}/state
  5. transition to PUBLISHED via the same endpoint. Confirm a 200, and check the bundle-api logs for "sending slack alarm for slow bundle publish" with bundle_id and duration populated
  6. restart with BUNDLE_PUBLISH_SLOW_THRESHOLD unset and repeat steps 2-5. Confirm the alarm log line does not appear for a normal speed publish

Who can review

Anyone

@andre-urbani
andre-urbani requested a review from a team as a code owner September 9, 2026 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant