Skip to content

Commit

Permalink
chg: timeouts are supposed to trigger on max capture time, give a bit…
Browse files Browse the repository at this point in the history
… of extra time.
  • Loading branch information
Rafiot committed Dec 8, 2023
1 parent 7c0a7af commit ef02e8e
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: Optional[int]=None):
async def clear_dead_captures(self):
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)
oldest_start_time = datetime.now() - timedelta(seconds=max_capture_time + 300)
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 ef02e8e

Please sign in to comment.