cmd/ejobs: add -since flag to filter by date

This change adds a (optional) -since flag to ejobs start command to filter
modules by their version_updated_at timestamp before enqueuing tasks.
This helps to skip analyzing older modules and speed up jobs.

It also updates internal/pkgsitedb and internal/worker to support this.

Change-Id: I13f1b3ae2373ceceb919581225a7de77e186deeb
Reviewed-on: https://go-review.googlesource.com/c/pkgsite-metrics/+/774280
Reviewed-by: Jonathan Amsterdam <jba@google.com>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ethan Lee <ethanalee@google.com>
Auto-Submit: Hyang-Ah Hana Kim <hyangah@gmail.com>
7 files changed
tree: 8337533dd7b2618868e7964559a4a80fe8a4a70b
  1. cmd/
  2. deploy/
  3. devtools/
  4. internal/
  5. terraform/
  6. .dockerignore
  7. .gitignore
  8. all_test.go
  9. checks.bash
  10. codereview.cfg
  11. config.json.commented
  12. CONTRIBUTING.md
  13. go.mod
  14. go.sum
  15. LICENSE
  16. Makefile
  17. PATENTS
  18. README.md
  19. tools.go
README.md

pkgsite-metrics

This repository contains code that enables collecting and evaluating metrics for the Go ecosystem.

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.

The main issue tracker for the time repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/pkgsite-metrics:” in the subject line, so it is easy to find.