Skip to content

Commit

Permalink
Add a call to a DMS when the DB export script completes (#15261)
Browse files Browse the repository at this point in the history
* Add a call to a DMS when the export script completes

* Add a timeout and retries spec to the DMS ping
  • Loading branch information
stevejalim authored Oct 10, 2024
1 parent e1e9693 commit 48c1ce8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/export-db-to-sqlite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -313,3 +313,9 @@ echo "Restored original DATABASE_URL to $DATABASE_URL"
check_status_and_handle_failure "Checking all_well at the end of the run"

echo "Export to $output_db successful"

# If all is well, ping DMS to avoid an alert being raised.
if [[ -n "${DB_EXPORT_SCRIPT_DMS_URL}" ]]; then
curl -m 10 --retry 5 "${DB_EXPORT_SCRIPT_DMS_URL}"
echo "Pinged snitch"
fi

0 comments on commit 48c1ce8

Please sign in to comment.