retry after max 10 seconds

This commit is contained in:
Laura Klünder 2017-11-21 04:43:56 +01:00
parent 443d58965d
commit b15965ed6c

View file

@ -55,7 +55,7 @@ class TileServer:
break
logger.info('Retrying after %s seconds...' % wait)
time.sleep(wait)
wait = min(2, wait*2)
wait = min(10, wait*2)
threading.Thread(target=self.update_cache_package_thread, daemon=True).start()