Ensure all dbworker tables are consistently in failed state if max retries exceeded

Author: eseligerCreated Aug 1, 2022Updated Aug 8, 2024
Labelsteam/graphbatch-changes

Like https://github.com/sourcegraph/sourcegraph/pull/39761, this should be applied to all dbworker tables. Back when we introduced the failed state, we didn't migrate records over that now are errored but exceeded max retries, hence not ending up in errored state.

Source: sourcegraph/sourcegraph-public-snapshot