)]}'
{
  "commit": "0e401617d1662134d25d49fcb204a42e604fd65a",
  "tree": "82b84c6f412aaf8f415acae45e87c4fd772b7907",
  "parents": [
    "3df0c675134bbe088d6da66bc33db6ce04466db9"
  ],
  "author": {
    "name": "Jean Barkhuysen",
    "email": "jean.barkhuysen@gmail.com",
    "time": "Tue Jul 21 12:09:54 2026 -0600"
  },
  "committer": {
    "name": "Gopher Robot",
    "email": "gobot@golang.org",
    "time": "Tue Jul 21 14:33:26 2026 -0700"
  },
  "message": "cmd/worker: Use db.LatestIndexTimestamp for internal poller rather than time horizon.\n\nThis is my mistake, sorry. In\nhttps://go-review.googlesource.com/c/pkgsite/+/747880 I added the\ninternal poller with a horizon option, thinking that that was the\nsimplest way to do this. But, the problem with the horizon is that the\n\"cursor\" doesn\u0027t advance properly. It advances with time, not with\nwhatever we indexed last.\n\nIf we last indexed T1, and the worker dies, we\u0027d like to resume from T1.\nInstead, with the horizon, we resume from whatever `Tx\u003dnow()-horizon`\nmight be. That\u0027s different than how /poll works: it uses\ndb.LatestIndexTimestamp. So, it\u0027d have resumed from T1, since that was\nwhere we last indexed. This change basically just makes the internal\npoller do the same thing as the /poll endpoint in that regard.\n\nChange-Id: I3232f1684d29ffc0c3bd5104fcdb8562899a2b93\nReviewed-on: https://go-review.googlesource.com/c/pkgsite/+/803720\nAuto-Submit: Jonathan Amsterdam \u003cjba@google.com\u003e\nAuto-Submit: Ethan Lee \u003cethanalee@google.com\u003e\nReviewed-by: Jonathan Amsterdam \u003cjba@google.com\u003e\nkokoro-CI: kokoro \u003cnoreply+kokoro@google.com\u003e\nReviewed-by: Ethan Lee \u003cethanalee@google.com\u003e\nCommit-Queue: Jonathan Amsterdam \u003cjba@google.com\u003e\nLUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com \u003cgolang-scoped@luci-project-accounts.iam.gserviceaccount.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "e6644ceacafd426c74170164dc02b764683086be",
      "old_mode": 33188,
      "old_path": "cmd/worker/main.go",
      "new_id": "f1d540985f1dfc3e49e59ad1f81c2ec4677e7f93",
      "new_mode": 33188,
      "new_path": "cmd/worker/main.go"
    }
  ]
}
