Skip to content

Requeueing should not select failed batches#698

Merged
m90 merged 3 commits into
mainfrom
fr/failed-requeue
Nov 29, 2023
Merged

Requeueing should not select failed batches#698
m90 merged 3 commits into
mainfrom
fr/failed-requeue

Conversation

@m90

@m90 m90 commented Nov 29, 2023

Copy link
Copy Markdown
Contributor

Currently, failed jobs will still be selected by the query for requeuing, creating an incorrect number of processing attempts.

This has no user facing effect, but can be confusing when debugging.

@m90
m90 force-pushed the fr/failed-requeue branch 2 times, most recently from b38485e to a69ab45 Compare November 29, 2023 08:33
@m90
m90 force-pushed the fr/failed-requeue branch from a69ab45 to 74bb13f Compare November 29, 2023 08:37
@m90
m90 force-pushed the fr/failed-requeue branch from 74bb13f to 0fffc64 Compare November 29, 2023 09:18
->increment(
'processing_attempts', 1,
['pending_since' => null, 'done' => 0]
['pending_since' => null, 'done' => false]

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just a stylistic change so that the class always uses true|false instead of true|false|0|1

@m90
m90 merged commit 5b6e5dd into main Nov 29, 2023
@m90
m90 deleted the fr/failed-requeue branch November 29, 2023 12:26
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