Unable to connect to Redis jobboard other than localhost
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
taskflow |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
I'm using taskflow 2.3.0 and 2.6.0 and trying to use a job board with the following URL:
redis:
OR
redis:
However, this seems to fail with the error:
redis.
I noticed that within the Redis driver, it uses merge_uri to create a config containing the host and port as hostname.
However within CLIENT_
I feel like the fix might be to have redis accept hostname, rather than host + port in impl_redis.py.
Alternatively, the board parameter - though it is being parsed as a URL - is not really used in that way and you're actually supposed to always parse the redis URL yourself and pass in the host and port parameters to fetch_backend. In that case, might I recommend that `fetch_backend` rejects a URL and only allows one of `zookeeper` or `redis` ? Would have helped me diagnose this problem more readily.