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

fix(worker): fix close sequence to reduce risk for open handlers #2656

Merged
merged 10 commits into from
Aug 12, 2024

Conversation

manast
Copy link
Contributor

@manast manast commented Jul 16, 2024

Fixes or mitigates #2650

@manast manast requested a review from roggervalf July 16, 2024 13:54
@roggervalf roggervalf force-pushed the fix/fix-worker-close-sequence branch from f2ba8c1 to 2c5d533 Compare July 18, 2024 05:13
Copy link
Collaborator

@roggervalf roggervalf left a comment

Choose a reason for hiding this comment

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

Lgtm

@@ -310,7 +310,7 @@ export class RedisConnection extends EventEmitter {
await this.initializing;
}
if (!this.shared) {
if (status == 'initializing') {
if (status == 'initializing' || force || process.env.CI) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

better to not add a process.env value here, in case users use the same name

@manast manast merged commit 8468e44 into master Aug 12, 2024
9 checks passed
@manast manast deleted the fix/fix-worker-close-sequence branch August 12, 2024 08:29
github-actions bot pushed a commit that referenced this pull request Aug 12, 2024
## [5.12.4](v5.12.3...v5.12.4) (2024-08-12)

### Bug Fixes

* **worker:** fix close sequence to reduce risk for open handlers ([#2656](#2656)) ([8468e44](8468e44))
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