Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Improve incident management in Instatus check script #346

Merged
merged 3 commits into from
Dec 5, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into atif/registry-status-imrprovements
  • Loading branch information
matifali authored Nov 27, 2024
commit f76fdf29d6830217386c8332ac017d0733f5266d
6 changes: 6 additions & 0 deletions .github/scripts/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,11 @@ done
# Determine overall status and update Instatus component
if (( status == 0 )); then
echo "All modules are operational."
# set to
update_component_status "OPERATIONAL"
else
echo "The following modules have issues: ${failures[*]}"
# check if all modules are down
if (( ${#failures[@]} == ${#modules[@]} )); then
update_component_status "MAJOROUTAGE"
else
Expand All @@ -191,6 +193,10 @@ else
if ! check_existing_incident; then
create_incident
fi

# If a module is down, force a reployment to try getting things back online
# ASAP
force_redeploy_registry
fi

exit "${status}"
You are viewing a condensed version of this merge commit. You can view the full changes here.