[GH-ISSUE #311] Ignore error on calculating RDB.MemoryUsage #86

Closed
opened 2026-03-02 05:18:38 +03:00 by kerem · 2 comments
Owner

Originally created by @NyaMisty on GitHub (Aug 24, 2023).
Original GitHub issue: https://github.com/hibiken/asynqmon/issues/311

On Redis SaaS platform like Redis Cloud or Upstash, they disable MEMORY USAGE command in Lua script (reporting error "This Redis command is not allowed from scripts"), causing the whole Inspector.GetQueueInfo() function fails.
As MemoryUsage is not a critical stat data, can we ignore error in memory usage query?

Originally created by @NyaMisty on GitHub (Aug 24, 2023). Original GitHub issue: https://github.com/hibiken/asynqmon/issues/311 On Redis SaaS platform like Redis Cloud or Upstash, they disable MEMORY USAGE command in Lua script (reporting error "This Redis command is not allowed from scripts"), causing the whole Inspector.GetQueueInfo() function fails. As MemoryUsage is not a critical stat data, can we ignore error in memory usage query?
kerem closed this issue 2026-03-02 05:18:39 +03:00
Author
Owner

@NyaMisty commented on GitHub (Aug 24, 2023):

Sorry posted on wrong place. I'll repost it in asynq main repo

<!-- gh-comment-id:1691573360 --> @NyaMisty commented on GitHub (Aug 24, 2023): Sorry posted on wrong place. I'll repost it in asynq main repo
Author
Owner

@ganlvtech commented on GitHub (Jul 4, 2025):

sed -i 's/redis\.call("MEMORY".*/0/g' "$(go env GOMODCACHE)/github.com/hibiken/asynq@v0.24.1/internal/rdb/inspect.go"

For docker. Modify Dockerfile, add

RUN sed -i 's/redis\.call("MEMORY".*/0/g' "/go/pkg/mod/github.com/hibiken/asynq@v0.24.1/internal/rdb/inspect.go"

after RUN go mod download

<!-- gh-comment-id:3034805874 --> @ganlvtech commented on GitHub (Jul 4, 2025): ``` sed -i 's/redis\.call("MEMORY".*/0/g' "$(go env GOMODCACHE)/github.com/hibiken/asynq@v0.24.1/internal/rdb/inspect.go" ``` For docker. Modify `Dockerfile`, add ``` RUN sed -i 's/redis\.call("MEMORY".*/0/g' "/go/pkg/mod/github.com/hibiken/asynq@v0.24.1/internal/rdb/inspect.go" ``` after `RUN go mod download`
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/asynqmon#86
No description provided.