You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if prepare_for_work:
self.hostname: Optional[str] = socket.gethostname()
self.pid: Optional[int] = os.getpid()
try:
connection.client_setname(self.name)
except redis.exceptions.ResponseError:
warnings.warn('CLIENT SETNAME command not supported, setting ip_address to unknown', Warning)
self.ip_address = 'unknown'
else:
client_adresses = [client['addr'] for client in connection.client_list() if client['name'] == self.name]
if len(client_adresses) > 0:
self.ip_address = client_adresses[0]
else:
warnings.warn('CLIENT LIST command not supported, setting ip_address to unknown', Warning)
self.ip_address = 'unknown'
The CLIENT LIST command is required in order to initialize a worker.
The CLIENT LIST command is marked as admin, slow, and dangerous in the official redis documentation, and is often a permission that is denied in managed Redis offerings, making adoption of RQ more difficult.
Is there something that can be done to avoid this admin permission requirement without changing the overall functionality of the code?
The text was updated successfully, but these errors were encountered:
Hello, in the following code in
worker.py
The
CLIENT LIST
command is required in order to initialize a worker.The
CLIENT LIST
command is marked asadmin
,slow
, anddangerous
in the official redis documentation, and is often a permission that is denied in managed Redis offerings, making adoption of RQ more difficult.Is there something that can be done to avoid this admin permission requirement without changing the overall functionality of the code?
The text was updated successfully, but these errors were encountered: