Rafael Sanchez
Rafael Sanchez

Reputation: 414

Change maximum concurrent tasks in a GCP Cloud Tasks queue

I'd like to know how to change the maximum number of concurrent tasks in a queue. I know that this can somehow be done in the yaml files, but is this possible using gcloud commands from the terminal?

Upvotes: 0

Views: 1579

Answers (1)

Nibrass H
Nibrass H

Reputation: 2487

You can use the following command to set the maximum number of concurrent tasks:

gcloud tasks queues update [QUEUE_ID] \
--max-dispatches-per-second=[DISPATCH_RATE] \
--max-concurrent-dispatches=[MAX_RUNNING]

To only set the maximum number:

gcloud tasks queues update QUEUE \
--max-concurrent-dispatches=20

Upvotes: 3

Related Questions