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(until_and_while_executing): Improve timeouts slightly #728

Merged
merged 13 commits into from
Jul 28, 2022

Conversation

mhenrixon
Copy link
Owner

No description provided.

@mhenrixon mhenrixon added the bug label Jul 27, 2022
@mhenrixon mhenrixon self-assigned this Jul 27, 2022
@@ -3,12 +3,14 @@
RSpec.describe "SidekiqUniqueJobs::Lock::UntilAndWhileExecuting" do
before do
digests.delete_by_pattern("*")
toxic_redis_url = ENV["CI"] ? "toxiproxy:21212" : "localhost:21212"

Choose a reason for hiding this comment

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

I suspect you'll also need the following for CI to properly point to the toxiproxy daemon container/service:

Toxiproxy.host = 'http://toxiproxy:8474' if ENV["CI"]

I'd imagine this'll resolve the current Failed to open TCP connection to 127.0.0.1:8474 errors in CI.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Failed to open TCP connection to toxiproxy:8474 (getaddrinfo: Temporary failure in name resolution)

🤷‍♂️

Well I got it working locally so I'll skip this spec for CI for now.

@mhenrixon mhenrixon changed the title Fix(until_and_while_executing): Prevent lingering locks Fix(until_and_while_executing): Improve timeouts slightly Jul 28, 2022
@mhenrixon mhenrixon enabled auto-merge (squash) July 28, 2022 10:01
@mhenrixon mhenrixon merged commit 3de1f62 into main Jul 28, 2022
@mhenrixon mhenrixon deleted the fix/lingering-locks branch July 28, 2022 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants