Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avoid race condition on push #1084

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

petrjasek
Copy link
Member

@petrjasek petrjasek commented Sep 13, 2024

there is a race condition when the same planning item is pushed 2x in very short time period, avoid 409 error in that case and rather return 503 which will make superdesk send it again later.

Checklist

  • This pull request is not adding new forms that use redux
  • This pull request is adding missing TypeScript types to modified code segments where it's easy to do so with confidence
  • This pull request is replacing lodash.get with optional chaining for modified code segments

Resolves: STTNHUB-360

there is a race condition when the same planning item
is pushed 2x in very short time period, avoid 409 error
in that case and rather return 503 which will make superdesk
send it again later.

STTNHUB-360
@petrjasek petrjasek added this to the v2.8 milestone Sep 13, 2024
@petrjasek petrjasek merged commit e16c38c into superdesk:release/2.8 Sep 16, 2024
7 checks passed
@petrjasek petrjasek deleted the fix-push-race-condition branch September 16, 2024 08:13
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