Browse Source
Checks now have a new status: "paused". sendalerts management command will mark checks as paused if sending a notification throws exception. This should avoid potential infinite loops of sendalerts crashes/respawns.
pull/9/head
Checks now have a new status: "paused". sendalerts management command will mark checks as paused if sending a notification throws exception. This should avoid potential infinite loops of sendalerts crashes/respawns.
pull/9/head
Pēteris Caune
9 years ago
8 changed files with 92 additions and 39 deletions
-
3.gitignore
-
86hc/api/management/commands/sendalerts.py
-
19hc/api/migrations/0016_auto_20151030_1107.py
-
12hc/api/models.py
-
4static/css/base.css
-
3templates/emails/alert-body-html.html
-
2templates/front/my_checks_desktop.html
-
2templates/front/my_checks_mobile.html
@ -1,5 +1,6 @@ |
|||
__pycache__/ |
|||
*.pyc |
|||
.coverage |
|||
local_settings.py |
|||
hc.sqlite |
|||
hc/local_settings.py |
|||
static-collected |
@ -0,0 +1,19 @@ |
|||
# -*- coding: utf-8 -*- |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import models, migrations |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('api', '0015_auto_20151022_1008'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterField( |
|||
model_name='check', |
|||
name='status', |
|||
field=models.CharField(default='new', max_length=6, choices=[('up', 'Up'), ('down', 'Down'), ('new', 'New'), ('paused', 'Paused')]), |
|||
), |
|||
] |
Write
Preview
Loading…
Cancel
Save
Reference in new issue