[GH-ISSUE #499] [BUG] Cli tool Server list is not working with K8S hostname #2252

Open
opened 2026-03-15 19:51:36 +03:00 by kerem · 0 comments
Owner

Originally created by @jaekook-neonesia on GitHub (Jun 22, 2022).
Original GitHub issue: https://github.com/hibiken/asynq/issues/499

Originally assigned to: @hibiken on GitHub.

Describe the bug
When I use asynq at K8S pod, Cli tool can't showing server list

To Reproduce
Steps to reproduce the behavior (Code snippets if applicable):

  1. ./asynq server list
    Using config file: /home/xxxxx/.asynq.yaml
    No running servers

  2. ❯ redis-cli -a *****************
    Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
    127.0.0.1:6379> zrangebyscore asynq:servers -inf +inf

  1. "asynq:servers:{config-service-d487b8c8f-7777b:12:01465b9c-5ba0-441b-b0bb-e8072a26dee6}"
  2. "asynq:servers:{http-channel-56897d799f-kk69x:13:80787310-eeca-4a4f-9fb2-eda6d9791d9a}"

Expected behavior
Showing server list

Environment (please complete the following information):

  • OS: Ubuntu 20.04
  • Version of asynq package v0.23.0

Additional context
May be ListServers problem?

// ListServers returns the list of server info.
func (r *RDB) ListServers() ([]*base.ServerInfo, error)

Originally created by @jaekook-neonesia on GitHub (Jun 22, 2022). Original GitHub issue: https://github.com/hibiken/asynq/issues/499 Originally assigned to: @hibiken on GitHub. **Describe the bug** When I use asynq at K8S pod, Cli tool can't showing server list **To Reproduce** Steps to reproduce the behavior (Code snippets if applicable): 1. ./asynq server list Using config file: /home/xxxxx/.asynq.yaml No running servers 2. ❯ redis-cli -a ***************** Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe. 127.0.0.1:6379> zrangebyscore asynq:servers -inf +inf 1) "asynq:servers:{config-service-d487b8c8f-7777b:12:01465b9c-5ba0-441b-b0bb-e8072a26dee6}" 2) "asynq:servers:{http-channel-56897d799f-kk69x:13:80787310-eeca-4a4f-9fb2-eda6d9791d9a}" **Expected behavior** Showing server list **Environment (please complete the following information):** - OS: Ubuntu 20.04 - Version of `asynq` package v0.23.0 **Additional context** May be ListServers problem? // ListServers returns the list of server info. func (r *RDB) ListServers() ([]*base.ServerInfo, error)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asynq#2252
No description provided.