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

Make queue setup idempotent #287

Merged
merged 2 commits into from
Sep 16, 2024
Merged

Make queue setup idempotent #287

merged 2 commits into from
Sep 16, 2024

Conversation

ChrisBr
Copy link
Contributor

@ChrisBr ChrisBr commented Sep 12, 2024

We experienced some builds which pushed several times to the queue because of the Redis reconnect configuration. This is problematic for the initial setup command because it's not idempotent and we end up with the same tests multiple times in the queue.

This PR ensures we only push to the queue if it hasn't been initialised yet. It also bumps the timeout so this will happen less frequently.

@ChrisBr ChrisBr marked this pull request as ready for review September 12, 2024 13:34
@ChrisBr ChrisBr requested review from casperisfine and a team September 12, 2024 13:34
ruby/lib/ci/queue/redis/worker.rb Outdated Show resolved Hide resolved
ruby/lib/ci/queue/redis/worker.rb Show resolved Hide resolved
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.

3 participants