Commit 95b60099 authored by Łukasz Nowak's avatar Łukasz Nowak

promise: React on first failure in check_surykatka_json

If there is an issue detected with the URL monitored by surykatka, the
default reaction is immediate failure.
parent e0feb245
......@@ -24,7 +24,7 @@ class RunPromise(GenericPromise):
super(RunPromise, self).__init__(config)
# Set frequency compatible to default surykatka interval - 2 minutes
self.setPeriodicity(float(self.getConfig('frequency', 2)))
self.failure_amount = int(self.getConfig('failure_amount', 3))
self.failure_amount = int(self.getConfig('failure_amount', 1))
self.result_count = self.failure_amount
self.error_list = []
self.info_list = []
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment