Stop repo monitor earlier: 30 hours might be a little excessive

This commit is contained in:
Stephan Kulow 2020-03-06 09:39:02 +01:00
parent 63aa406da3
commit 3cd2623618

View File

@ -28,7 +28,7 @@ class Listener(PubSubConsumer):
def interval(self):
if len(self.repositories_to_check):
return 5
return 300
return super(Listener, self).interval()
def still_alive(self):
self.check_some_repos()
@ -146,6 +146,6 @@ if __name__ == '__main__':
listener = Listener(apiurl, amqp_prefix, args.namespaces)
try:
listener.run(108000)
listener.run(10800)
except KeyboardInterrupt:
listener.stop()