ROS feed fix

This commit is contained in:
Arseniy Kuznetsov
2024-03-31 08:23:07 +02:00
parent 88593c1765
commit f65c692700
2 changed files with 4 additions and 5 deletions

View File

@@ -13,7 +13,7 @@
[MKTXP]
listen = '0.0.0.0:49090' # Space separated list of socket addresses to listen to, both IPV4 and IPV6
socket_timeout = 2
socket_timeout = 4
initial_delay_on_failure = 120
max_delay_on_failure = 900
@@ -27,7 +27,7 @@
fetch_routers_in_parallel = False # Set to True if you want to fetch multiple routers parallel
max_worker_threads = 5 # Max number of worker threads that can fetch routers (parallel fetch only)
max_scrape_duration = 10 # Max duration of individual routers' metrics collection (parallel fetch only)
total_max_scrape_duration = 30 # Max overall duration of all metrics collection (parallel fetch only)
max_scrape_duration = 30 # Max duration of individual routers' metrics collection (parallel fetch only)
total_max_scrape_duration = 90 # Max overall duration of all metrics collection (parallel fetch only)
compact_default_conf_values = False # Compact mktxp.conf, so only specific values are kept on the individual routers' level

View File

@@ -23,7 +23,6 @@ from multiprocessing import Process, Event
from datetime import timedelta
from packaging.version import parse
''' Utilities / Helpers
'''
@contextmanager
@@ -305,7 +304,7 @@ def get_available_updates(channel, ttl_hash=get_ttl_hash()):
for child in channel:
# iterate over all updates
if child.tag == 'item':
title, _, _, _, _, _ = child
title, _, _, _, _ = child
# extract and parse the version number from title
version_text = re.findall(r'[\d+\.]+', title.text)[0]
version_number = parse(version_text)