-
-
Notifications
You must be signed in to change notification settings - Fork 16
Refactor task queue to resolve task-related failures #964
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
darinkrauss
wants to merge
21
commits into
master
Choose a base branch
from
darin/dexcom-slowdown
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 17 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
60a02d9
Refactor task queue to resolve task-related failures
darinkrauss d30d9d0
Update Abbott plugin
darinkrauss 4df7d84
Make task deadline to database only
darinkrauss 9d0e3b1
Minor updates for Dexcom code
darinkrauss 50dda41
Clear task available time appropriately
darinkrauss d6f346b
Add metrics routes
darinkrauss 8b90137
Address PR comments
darinkrauss 56e3ea0
Correctly wire up round tripper in OAuth clients
darinkrauss 8f81b83
Update platform-plugin-abbott dependency
darinkrauss 1a6ff90
Fix issues with task metrics and queue
darinkrauss 62c2b0f
Add checks for task claims that have been lost
darinkrauss a00b87a
Fix intermittent test failures
darinkrauss 4019768
Update for broken database tests
darinkrauss 4afe97f
Minor test updates
darinkrauss 1503c64
Updates from code review
darinkrauss f698aff
Fix intermittent test failures
darinkrauss 25b1a82
Fix PR review issues
darinkrauss ca3d2b0
Update abbott submodule
darinkrauss 889fc23
Fix client duration parsing
darinkrauss 355b240
Do not update data source or task if task claim was lost
darinkrauss bc4feb2
Merge branch 'master' into darin/dexcom-slowdown
darinkrauss File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| package v1 | ||
|
|
||
| import ( | ||
| "net/http" | ||
|
|
||
| "github.com/ant0ine/go-json-rest/rest" | ||
| "github.com/prometheus/client_golang/prometheus" | ||
| "github.com/prometheus/client_golang/prometheus/promhttp" | ||
| ) | ||
|
|
||
| func (r *Router) MetricsRoutes() []*rest.Route { | ||
| return []*rest.Route{ | ||
| rest.Get("/v1/metrics", r.PrometheusMetrics), | ||
| } | ||
| } | ||
|
|
||
| func (r *Router) PrometheusMetrics(res rest.ResponseWriter, req *rest.Request) { | ||
| // The default go-json-rest middleware gzips the content | ||
| promhttp.HandlerFor(prometheus.DefaultGatherer, promhttp.HandlerOpts{DisableCompression: true}). | ||
| ServeHTTP(res.(http.ResponseWriter), req.Request) | ||
| } | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.