Skip to content

fix(qs): batches that are done shall never be marked failed#707

Merged
m90 merged 4 commits into
mainfrom
fr/fix-mark-failed
Dec 12, 2023
Merged

fix(qs): batches that are done shall never be marked failed#707
m90 merged 4 commits into
mainfrom
fr/fix-mark-failed

Conversation

@m90

@m90 m90 commented Dec 12, 2023

Copy link
Copy Markdown
Contributor

It seems the /getBatches endpoint still can return the same batch multiple times when called with only milliseconds in between. This creates a scenario where:

  • a batch gets pulled 3 times
  • it is successfully processed and marked done
  • it gets 3 processing attemps
  • thus it is also marked as failed, triggering a false alarm about failed batches

To work around this, never mark batches failed that have previously been marked done.

@m90
m90 force-pushed the fr/fix-mark-failed branch from cdd5562 to 4ead059 Compare December 12, 2023 12:30
@m90
m90 merged commit 3a81750 into main Dec 12, 2023
@m90
m90 deleted the fr/fix-mark-failed branch December 12, 2023 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants