-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GetNetworkStats improvment: timeout & caching (#1327)
* Set timeout to 5s on the GetNetworkStats msg * Properly handle timeout & calculate all the subsets at the same time * GetNetworkStats use a JobCache * task have a longer timeout * add :immediate flag to JobCache * Refactor the statsCollector - subscribe to events to start/stop job cache * statscollector may start the jobs on first request if that happens before the event * Simplify the stats collector by removing the state * JobCache.get! now takes a keyword list - it now use a registry - it might start the process if not already started
- Loading branch information
Showing
17 changed files
with
674 additions
and
158 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
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.