Skip to content

Commit

Permalink
chg: make the killtime for a stuck capture 10% more than the max time
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Nov 12, 2024
1 parent 1313d72 commit 18e1bae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/capture_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.')
Expand Down

0 comments on commit 18e1bae

Please sign in to comment.