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

Remove the REDIS_CONTAINER_NAME environment variable. #14

Merged
merged 3 commits into from
Jan 13, 2025

Conversation

plietar
Copy link
Member

@plietar plietar commented Jan 10, 2025

rrq already respects the REDIS_URL if no host is given. That is more general than just a container name, since it could be running on a different port / outside of Docker / over TLS / require a password.

rrq already respects the REDIS_URL if no host is given. That is more
general than just a container name, since it could be running on a
different port / outside of Docker / over TLS / require a password.
@plietar plietar requested a review from M-Kusumgar January 10, 2025 09:59
Copy link
Contributor

@M-Kusumgar M-Kusumgar left a comment

Choose a reason for hiding this comment

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

Thats super useful, did not know that, thanks

plietar added a commit to mrc-ide/packit that referenced this pull request Jan 13, 2025
I've removed support for the REDIS_CONTAINER_NAME environment variable
from the runner implementation (mrc-ide/orderly.runner#14).

rrq already allows natively supports configuration from the REDIS_URL,
which is strictly more general.
Using finalizers to do this causes some tests to become flaky, as the
queue is destroyed too early. I'm not convinced destroying the queue is
even useful or desirable in production.
@plietar plietar merged commit 56e1862 into main Jan 13, 2025
7 checks passed
@plietar plietar deleted the remove-redis-container-name branch January 13, 2025 15:43
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