-
Notifications
You must be signed in to change notification settings - Fork 791
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create admin API to get task queue tasks #2221
Conversation
@@ -360,3 +362,16 @@ message ResendReplicationTasksRequest { | |||
|
|||
message ResendReplicationTasksResponse { | |||
} | |||
|
|||
message GetTaskQueueTasksRequest { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GetTaskQueueTasksRequest -> ListTaskQueueTasksRequest & add a pagination token?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
afaict this also requires changes in persistence right so it returns a page token? i'm opening a ticket for refactoring
@@ -360,3 +362,16 @@ message ResendReplicationTasksRequest { | |||
|
|||
message ResendReplicationTasksResponse { | |||
} | |||
|
|||
message GetTaskQueueTasksRequest { | |||
string namespace_id = 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should use namespace.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolved
243fd24
to
0a7f1d1
Compare
0a7f1d1
to
7077aab
Compare
What changed?
Created an admin API that that allows to get task-queue tasks
Why?
simplifie get task queue tasks in tctl admin command by removing the need for direct DB connection params
How did you test it?
./tctl admin taskqueue list_tasks --namespace default --taskqueue open-n-closed
Potential risks
adds a new API, no risks for existing functionality
Is hotfix candidate?