-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: update metric api to cumulate task count after db purge (#60)
* refactor: update metric api to cumulate task count after db purge - increment the task result count everytime the api is called instead of fetch from TaskResult table - use Redis INCR for atomic increments that work across all instances * fix: fixed from PR feedback - added some changes for PR feedback - removed cache on GetTasksByWorkerSubscription to fix task list not properly updated * fix: add more changes for PR, and edges cases - add TasksByWorker cache back that was removed because of inconsistent UI - reset the related cache after successful task sumit, or create - refactor some code in cache.go - add some changes from PR feedback * chore: clean up substrate logs * fix: bug fixed on changing expired time - use UTC on current time when checking on expired task - remove the check for expire task with no result, since schedular handling it already
- Loading branch information
1 parent
2bf5131
commit f2654a6
Showing
14 changed files
with
192 additions
and
131 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
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.