-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix&refine] new way to collect downloader stats, resolve edge condit…
…ion on downloading breakout condition (#208) Changes * downloader: now has 3 new properties: downloaded_bytes, downloader_active_seconds and last_active_stamp, these 3 properties are updated per second, and the stats updating starts from the downloader being initialized. * otaclient status API now report downloaded_bytes(download_bytes in v1), downloading_elapsed_time(elapsed_time_download in v1) by accessing the corresponding properties of downloader. * otaclient.download_files & ota_metadata._process_text_base_otameta_file now have new breakout logic on exceeded inactive duration. * update_stats: do not update downloaded_bytes and downloading_elapsed_time anymore, these fields are updated by otaclient status API handler now. Other changes * fix/update test files accordingly. * configs: change DOWNLOAD_GROUP_BACKOFF_FACTOR from 0.1 to 1, each retry round should have longer initial interval. * configs: rename DOWNLOAD_GROUP_NO_SUCCESS_RETRY_TIMEOUT -> DOWNLOAD_GROUP_INACTIVE_TIMEOUT.
- Loading branch information
1 parent
29eba9a
commit 682b5db
Showing
8 changed files
with
183 additions
and
85 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
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.