mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-26 07:25:56 +03:00
[PR #577] [CLOSED] Add interface for Inspector methods #785
Labels
No labels
CLI
bug
designing
documentation
duplicate
enhancement
good first issue
good first issue
help wanted
idea
invalid
investigate
needs-more-info
performance
pr-welcome
pull-request
question
wontfix
work in progress
work in progress
work-around-available
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asynq#785
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hibiken/asynq/pull/577
Author: @vladfr
Created: 11/23/2022
Status: ❌ Closed
Base:
master← Head:inspector_interface📝 Commits (2)
3481165create an interface for inspector methods840abd1fix errors in tests📊 Changes
5 files changed (+222 additions, -153 deletions)
View changed files
📝
inspector.go(+9 -9)📝
internal/base/base.go(+84 -0)➕
internal/base/stats.go(+67 -0)📝
internal/rdb/inspect.go(+23 -105)📝
internal/rdb/inspect_test.go(+39 -39)📄 Description
This is a code structure change, not a functional one. There is a
base.Brokerinterface that RDB implements, so I wanted to do the same for the Inspector.This PR adds the interface
base.QueueInspectorand moves some types to thebasepackage in order to avoid circular dependencies. As expected, RDB already implements bothbase.QueueInspectorandbase.Broker.Why?. To make the CLI and UI work with different broker implementations. I would like to add another broker to this library, backed by MongoDB.
base.Brokerworks fine, I have implemented basic features, but it needs this new interface to add support in the CLI and UI.All tests are passing.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.