Skip to content
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

Merged
merged 1 commit into from
Nov 24, 2021

Conversation

feedmeapples
Copy link
Contributor

@feedmeapples feedmeapples commented Nov 23, 2021

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?

@feedmeapples feedmeapples requested a review from a team November 23, 2021 02:49
@@ -360,3 +362,16 @@ message ResendReplicationTasksRequest {

message ResendReplicationTasksResponse {
}

message GetTaskQueueTasksRequest {
Copy link
Contributor

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?

Copy link
Contributor Author

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;
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

resolved

@feedmeapples feedmeapples merged commit 6c86649 into master Nov 24, 2021
@feedmeapples feedmeapples deleted the admin-api-tq-list-tasks branch November 24, 2021 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants