From 18e1bae58cedd072ad37f40c6cb212648f7a4a58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Tue, 12 Nov 2024 13:04:50 +0100 Subject: [PATCH] chg: make the killtime for a stuck capture 10% more than the max time --- bin/capture_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/capture_manager.py b/bin/capture_manager.py index 16bf512..97d9e76 100755 --- a/bin/capture_manager.py +++ b/bin/capture_manager.py @@ -28,7 +28,7 @@ def __init__(self, loglevel: int | None=None) -> None: async def clear_dead_captures(self) -> None: ongoing = {capture.get_name(): capture for capture in self.captures} max_capture_time = get_config('generic', 'max_capture_time') - oldest_start_time = datetime.now() - timedelta(seconds=max_capture_time + 300) + oldest_start_time = datetime.now() - timedelta(seconds=max_capture_time + (max_capture_time / 10)) for expected_uuid, start_time in self.lacus.monitoring.get_ongoing_captures(): if expected_uuid not in ongoing.keys(): self.lacus.core.clear_capture(expected_uuid, 'Capture not in the list of tasks, it has been canceled.')