Skip to content

[PP-7972] Do not retry Delete Publish Intent Job on not found error - #4177

Merged
brucebolt merged 1 commit into
mainfrom
rescue-publish-intent-error
Aug 26, 2026
Merged

[PP-7972] Do not retry Delete Publish Intent Job on not found error#4177
brucebolt merged 1 commit into
mainfrom
rescue-publish-intent-error

Conversation

@brucebolt

Copy link
Copy Markdown
Member

We currently raise a GdsApi::NotFound exception when attempting to delete a publish intent which already does not exist in Content Store.

This results in the job retrying, even though it will always fail as the publish intent does not exist.

If the publish intent does get created again, but then we try to delete it, we attempt to schedule another job but that fails because of the lock that has been readded.

The retries occur over a period of 20 days, meaning deletion of a publish intent could potentially be blocked for that period.

Changing the logic here to rescue from this exception and log the error instead of failing. This will mean the job doesn't get added to the retry queue and won't remain locked.

We currently raise a `GdsApi::NotFound` exception when attempting to
delete a publish intent which already does not exist in Content Store.

This results in the job retrying, even though it will always fail as the
publish intent does not exist.

If the publish intent does get created again, but then we try to delete
it, we attempt to schedule another job but that fails because of the
lock that has been readded.

The retries occur over a period of 20 days, meaning deletion of a
publish intent could potentially be blocked for that period.

Changing the logic here to rescue from this exception and log the
error instead of failing. This will mean the job doesn't get added to
the retry queue and won't remain locked.
@brucebolt
brucebolt marked this pull request as ready for review August 26, 2026 12:37
@brucebolt
brucebolt merged commit 5d2bc12 into main Aug 26, 2026
15 checks passed
@brucebolt
brucebolt deleted the rescue-publish-intent-error branch August 26, 2026 13:35
@brucebolt brucebolt changed the title Do not retry Delete Publish Intent Job on not found error [PP-7972] Do not retry Delete Publish Intent Job on not found error Aug 27, 2026
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