-
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.
feat(retry_task_map): introduce worker-thread-scope backoff wait on f…
…ailed tasks rescheduling. (#450) This PR introduces worker-thread-scope backoff wait on failed tasks rescheduling for otaclient_common.retry_task_map. For each worker thread, a coutinues_failed_count is maintained, when rescheduling failed tasks, now we will wait with backoff before put the failed task back into task queue. This will help lower the CPU usage a lot when the network is fully disconnected.
- Loading branch information
1 parent
e6a93db
commit 19c4c5c
Showing
2 changed files
with
77 additions
and
12 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
19c4c5c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage Report