-
Notifications
You must be signed in to change notification settings - Fork 166
Download counts: cache 30-days totals in backend #8117
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,7 @@ import 'package:args/command_runner.dart'; | |
| import 'package:gcloud/service_scope.dart'; | ||
| import 'package:logging/logging.dart'; | ||
| import 'package:path/path.dart' as path; | ||
| import 'package:pub_dev/service/download_counts/backend.dart'; | ||
| import 'package:pub_dev/service/services.dart'; | ||
| import 'package:stream_transform/stream_transform.dart' show RateLimit; | ||
| import 'package:watcher/watcher.dart'; | ||
|
|
@@ -52,6 +53,7 @@ Future _main() async { | |
| await announcementBackend.start(); | ||
| await topPackages.start(); | ||
| await youtubeBackend.start(); | ||
| await downloadCountsBackend.start(); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @isoos is this this the right place to start it? unrelated: Should we investigate if these could be started concurrently?
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it is a good place to start it, unless we only want to start it in the |
||
|
|
||
| await runHandler(_logger, appHandler, sanitize: true); | ||
| } | ||
|
|
||
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.
IIRC we have a tryInfo in the
lib/shared/storage.dartwhich could at least handle the 404 part of the exceptions.