feat: publish sanitized custom.97 source
This commit is contained in:
1022 files changed
+69903
-19207
No files matched your search
@@ -20,7 +20,7 @@ type DetectionSchedule struct {
|
||||
}
|
||||
|
||||
func NextDetectionInterval(lastValid, outcome string, current int) int {
|
||||
if outcome != "normal" && outcome != "degraded" {
|
||||
if outcome != "normal" && outcome != "degraded" && outcome != "incomplete" {
|
||||
return 15
|
||||
}
|
||||
if lastValid == "" {
|
||||
@@ -51,7 +51,10 @@ func ApplyDetectionScheduleResult(ctx context.Context, channelID int, kind, resu
|
||||
return nil
|
||||
}
|
||||
state.IntervalMinutes = NextDetectionInterval(state.LastValid, outcome, state.IntervalMinutes)
|
||||
if outcome == "normal" || outcome == "degraded" {
|
||||
if kind == "ciallo" {
|
||||
state.IntervalMinutes = 45
|
||||
}
|
||||
if outcome == "normal" || outcome == "degraded" || outcome == "incomplete" {
|
||||
state.LastValid = outcome
|
||||
}
|
||||
state.LastFinishedAt, state.LastResultID = finishedAt, resultID
|
||||
|
||||
Reference in new issue
Block a user