Post a Discord notice when the service goes down and comes back up #1093

Open
opened 2026-08-20 09:26:49 +00:00 by coilyco-ops-gaming · 0 comments

The gap

When the service restarts or goes down, nothing posts a notice about it. Observed during a load test in which the service came up and down repeatedly: the channel had no message explaining the flapping, only a bot that silently stopped and resumed answering.

Expected

The service itself posts a notice when it goes down and when it comes back up, using the usual notice format, with the down arrow emoji (⬇️) at the start of the down notice and the up arrow emoji (⬆️) at the start of the up notice.

What to decide

  1. Where the notice lands: the lane's own channel, or a status channel.
  2. Lifecycle hooks: presumably around startup and shutdown in the Discord adapter, and whether both notices fire or only one.
  3. Debouncing: a flapping service could flood the channel, so consecutive transitions should probably be throttled.
## The gap When the service restarts or goes down, nothing posts a notice about it. Observed during a load test in which the service came up and down repeatedly: the channel had no message explaining the flapping, only a bot that silently stopped and resumed answering. ## Expected The service itself posts a notice when it goes down and when it comes back up, using the usual notice format, with the down arrow emoji (⬇️) at the start of the down notice and the up arrow emoji (⬆️) at the start of the up notice. ## What to decide 1. Where the notice lands: the lane's own channel, or a status channel. 2. Lifecycle hooks: presumably around startup and shutdown in the Discord adapter, and whether both notices fire or only one. 3. Debouncing: a flapping service could flood the channel, so consecutive transitions should probably be throttled.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
coilyco-gaming/sirens-echo#1093
No description provided.