Skip to content

Use RetryAfter in campaigns workers

Warren Gifford requested to merge mrn/campaigns-retry-after into main

Created by: mrnugget

This is based on and requires #13457.

In combination with #13457 this PR fixes the first and most important part of https://github.com/sourcegraph/sourcegraph/issues/12700 by adding automatic retrying of failed changesets to the reconciler.

It retries failed changesets every 5 seconds, if there are no newer, non-errored changesets to be dequeued.

The new order clause is strictly speaking not necessary yet, but I think it's a bug that we don't update a changeset's UpdatedAt when saving it back to the database. I want to tackle that in another PR.

Merge request reports

Loading