-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libassistant: Add limit of restart numbers
In this patch, we add a limit on how many times can LibAssistant service restarts in a predefined period of time to prevent consecutive crashes. If LibAssistant service crashes `kMaxStartServiceRetries` times in total, we will not restart LibAssistant service, unless: 1. Explicitly re-enable the Assistant from the Settings, 2. Reboot the device. 3. It has been `kAutoRecoverTime` since the last crash. After `kAutoRecoverTime`, the failure_count will be decreased by one, in order to try to auto-recover gradually. Bug: b:266610912 Test: Add unit tests Change-Id: I3738bedba8df1d01613f2b8ff041f9b7d5fe8e3c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4220237 Commit-Queue: Tao Wu <wutao@chromium.org> Reviewed-by: Xiaohui Chen <xiaohuic@chromium.org> Cr-Commit-Position: refs/heads/main@{#1103992}
- Loading branch information
Tao Wu
authored and
Chromium LUCI CQ
committed
Feb 10, 2023
1 parent
a889510
commit 62f7ecd
Showing
4 changed files
with
359 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.