Skip to content
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

alerta delete not removing all alerts #227

Open
3IMOH opened this issue Oct 16, 2020 · 1 comment
Open

alerta delete not removing all alerts #227

3IMOH opened this issue Oct 16, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@3IMOH
Copy link

3IMOH commented Oct 16, 2020

Issue Summary
When running "alerta delete" it does not appear to remove them all. I have to run the command multiple times to get all of the alerts cleared. I have tried waiting for a couple of minutes after running the command but it does not help.

Example:

$ alerta delete
Deleting all alerts. Do you want to continue? [y/N]: y
Deleting 178 alerts [####################################] 100%
$ alerta delete
Deleting all alerts. Do you want to continue? [y/N]: y
Deleting 129 alerts [####################################] 100%
$ alerta delete
Deleting all alerts. Do you want to continue? [y/N]: y
Deleting 82 alerts [####################################] 100%
$ alerta delete
Deleting all alerts. Do you want to continue? [y/N]: y
Deleting 34 alerts [####################################] 100%
$ alerta delete
Deleting all alerts. Do you want to continue? [y/N]: y
$

Environment

  • OS: Linux

  • API version: 8.0.3

  • Deployment: self hosted

  • For self-hosted, WSGI environment: nginx/uwsgi

  • Database: Mongo

  • web UI version: 8.0

  • CLI version: 8.0

@satterly
Copy link
Member

This is a page size issue. If the default page size is less than the number of heartbeats you'll need to run the command repeatedly. I've made a note to review paging more generally so I'll address this issue at the same time. Thanks for bringing it to my attention.

@satterly satterly added the enhancement New feature or request label Oct 24, 2020
@satterly satterly reopened this Nov 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 🧊 Ice Box
Development

No branches or pull requests

2 participants