Commit 0b08e6f
committed
Adjust the logic of the task to check for high failure rates
The
"check-for-services-with-high-failure-rates-or-sending-to-tv-numbers"
task had logic which meant that it checks for services with a high
percentage of permanent failures OR services that have sent more than
500 texts to TV numbers. If service(s) with high failure rates are
found, the check for sending to TV numbers didn't run.
This might have been deliberate when creating the task - services which
are sending to TV numbers are also likely to have high permanent failure
rates. However, it's possible we were sometimes missing services which
were sending to TV numbers because the code in the "elif" wasn't
reached.
This changes the check to check for both high failure rates and services
sending to TV numbers. Services might now appear in both categories, but
this alert very rarely triggers and having a service appear in both
should not be an issue.1 parent 7ef6644 commit 0b08e6f
File tree
2 files changed
+28
-18
lines changed- app/celery
- tests/app/celery
2 files changed
+28
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
473 | 473 | | |
474 | 474 | | |
475 | 475 | | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
| 476 | + | |
480 | 477 | | |
481 | 478 | | |
482 | 479 | | |
| |||
486 | 483 | | |
487 | 484 | | |
488 | 485 | | |
489 | | - | |
| 486 | + | |
490 | 487 | | |
491 | 488 | | |
492 | 489 | | |
493 | 490 | | |
494 | 491 | | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
| 492 | + | |
499 | 493 | | |
500 | 494 | | |
501 | 495 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
802 | 802 | | |
803 | 803 | | |
804 | 804 | | |
805 | | - | |
| 805 | + | |
806 | 806 | | |
807 | 807 | | |
808 | | - | |
| 808 | + | |
809 | 809 | | |
810 | | - | |
811 | | - | |
812 | | - | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
813 | 817 | | |
814 | 818 | | |
815 | 819 | | |
816 | 820 | | |
817 | | - | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
818 | 834 | | |
819 | | - | |
| 835 | + | |
820 | 836 | | |
821 | 837 | | |
822 | 838 | | |
823 | 839 | | |
824 | | - | |
| 840 | + | |
825 | 841 | | |
826 | 842 | | |
827 | 843 | | |
| |||
842 | 858 | | |
843 | 859 | | |
844 | 860 | | |
845 | | - | |
| 861 | + | |
846 | 862 | | |
847 | 863 | | |
848 | 864 | | |
| |||
0 commit comments