Using Console
Using CLI
QUEUE_NAME
with the name of the queue you want to update, MAX_ATTEMPTS
with the maximum number of attempts to execute the task and MAX_ATTEMPT_DURATION
with the maximum duration for each attempt.
For example, to set the max retry duration to 10 minutes and the max number of attempts to 3 for a queue named my-queue
, run the following command:
QUEUE_NAME
with the name of the queue you updated. This command will display the updated configuration of the queue.
Using Python
project
, location
, and queue
with your GCP project name, the location of the queue, and the name of the queue, respectively. Also, replace max_retry_duration_seconds
with the desired max retry duration in seconds.