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

Correctly pass task object into thread, fixing race condition #46

Merged
merged 3 commits into from
Nov 29, 2021

Conversation

jpalley
Copy link
Contributor

@jpalley jpalley commented Nov 21, 2021

The RedisTask object is not properly passed into the processing queue thread in the local_server. In our environment this creates a race condition which causes the local_server to randomly fail.

@alachaum
Copy link
Member

@jpalley good catch! Thanks for that.

Could you update your PR and make rubocop happy? rubocop -a should do the trick 😉

@jpalley
Copy link
Contributor Author

jpalley commented Nov 22, 2021

Ah - I tried to get away with just editing it in the github built-in editor!

Great project, btw. Makes our life so much easier to deploy rails on cloud run!

@alachaum
Copy link
Member

@jpalley Looks like our dear rubocop is still unhappy 😆

Note you can run it locally with bundle exec rubocop

@jpalley
Copy link
Contributor Author

jpalley commented Nov 28, 2021

Hopefully that did the trick...

@alachaum alachaum merged commit 112a2dd into keypup-io:master Nov 29, 2021
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