Dživo Jelić
Dživo Jelić

Reputation: 2143

Get tasks for queue using CloudTasksClient

I am trying to stop tasks that are queued and I need to get tasks for a queue.

I can use this but this will list all tasks for that client and i want just tasks for the query

const client = new CloudTasksClient();
const [tasks] = await client.listTasks({ parent });

Is there a better way to do this

Upvotes: 0

Views: 584

Answers (1)

Robert G
Robert G

Reputation: 2065

In addition to @guillaumeblaquiere's comment, here are the links to sample codes to manage queues and tasks:

Here are some of the references that you may find helpful:

I would suggest filing for feature request if you want this option so that Google engineers could take a look at this. This doesn't have an ETA but you can keep track of its progress once the ticket has been created.

Upvotes: 1

Related Questions