moira-alert / notifier

[DEPRECATED]
GNU General Public License v3.0
16 stars 8 forks source link

Remove notifications, that can't be delivered #2

Closed tantra35 closed 8 years ago

tantra35 commented 8 years ago

After mistake in config file we send notification throw email transport(agent), but this agent doesn't exists (its renamed to mail), so notifier constantly write in it log

2016-01-14 18:28:29     DEBUG   Scheduled notification for contact email:r****@****m trigger  at 2016/01/14 18:29:29 (1452785369)
2016-01-14 18:28:29     DEBUG   Scheduled notification for contact email:r****@****m trigger  at 2016/01/14 18:29:29 (1452785369)
2016-01-14 18:29:29     WARNING Can't send message after 896 try: Unknown contact type [package of 2 notifications to r****@****m]. Retry again 

And forever

beevee commented 8 years ago

It's not forever, it's for 1 day :)

@gmlexx maybe we should make this ttl configurable?

gmlexx commented 8 years ago

Or maybe we need some API to delete them

gmlexx commented 8 years ago

This feature is available in v1.1.14 of worker (API) and v1.0.19 of web Open /#/notifications/ page and remove failed items.