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

NEP-10148 Application version check #26

Merged
merged 6 commits into from
Jul 20, 2020
Merged

Conversation

andrba
Copy link
Contributor

@andrba andrba commented Jul 17, 2020

In environments where a rolling update of sidekiq workers is performed during the deployment, multiple versions of the application run at the same time. If a Patches job is scheduled by the new application version during the rolling update, there is a possibility that it can be executed by the old application version, which will not have all the required patch files.

This PR introduces an application version check. If an old application picks up the job and application versions don't match, the job is rescheduled in Sidekiq.

Copy link
Member

@SyntheticDave SyntheticDave left a comment

Choose a reason for hiding this comment

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

Nice one. 👍

@@ -76,7 +93,7 @@ update the run method and then execute

Generate patch with specs

```
```bash
Copy link
Member

Choose a reason for hiding this comment

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

✨ Nice touch adding the languages

@andrba andrba force-pushed the NEP-10148-application-version branch from 9bc3316 to c50aabb Compare July 20, 2020 05:44
Copy link
Member

@SyntheticDave SyntheticDave left a comment

Choose a reason for hiding this comment

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

LGTM

@andrba andrba merged commit 0fc3b87 into develop Jul 20, 2020
@andrba andrba deleted the NEP-10148-application-version branch July 20, 2020 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants