Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

insights: set backfill to failed if the job running it will be failed #50569

Closed
wants to merge 2 commits into from

Conversation

chwarwick
Copy link
Contributor

@chwarwick chwarwick commented Apr 12, 2023

This adds a check to the two backfilling job handlers to see if the current failure will be cause the job to fail, and if so it sets the backfill to failed.

I don't really like this but currently I don't see another way aside from a PostHandler that looked queried the job after every run to check the state

closes https://github.com/sourcegraph/sourcegraph/issues/50532

Test plan

Added unit test for new handler
Created insights with repo search that yields no repo causing failure.

  • verified insight completes with "no data"

@cla-bot cla-bot bot added the cla-signed label Apr 12, 2023
@chwarwick chwarwick requested a review from coury-clark April 12, 2023 18:05
@chwarwick chwarwick closed this Aug 16, 2023
@chwarwick chwarwick deleted the cw/backfill-new-fail branch August 16, 2023 19:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

insights: error series if backfill cannot complete the "new" state
2 participants