08c9d745f1
Previously, the node events chore would select based on the earliest created_at. However, if for some reason this batch fails, it would still be the next item to select. If there is a consistent error, the chore would be stuck retrying the same batch over and over. Now instead GetNextBatch orders by `last_attempted NULLS FIRST ASC, created_at ASC`. If a batch fails during Notify, last_attempted is updated so we can move on to a new batch if one exists. Change-Id: Ia8458e05ac358d85b2f2c6d690f3d607d631be61 |
||
---|---|---|
.. | ||
chore_test.go | ||
chore.go | ||
db.go | ||
mocknotifier.go | ||
types.go |