Manage queues and tasks

This page describes how to manage existing tasks and queues, including deleting them. In some cases you might need to delete a task that can't be completed successfully, no matter how many times it is retried.

Delete a task from a queue

You can delete a task using the Google Cloud console.

  1. In the Google Cloud console, go to the Cloud Tasks > Queues page.

    Go to Queues

  2. Click the name of the queue for the task that you want to delete.

  3. Select the checkbox for the task that you want to delete.

  4. Click Delete task.

  5. At the prompt, click Delete.

Purge all tasks from a queue

You can delete all tasks from a queue using the Google Cloud console.

  1. In the Google Cloud console, go to the Cloud Tasks > Queues page.

    Go to Queues

  2. Click the name of the queue for the tasks that you want to delete.

  3. Click Purge queue.

  4. At the prompt, click Purge.

All tasks created before the moment of purging are expunged. Purge operations can take up to one minute to take effect.

Pause queues

You can pause or resume a queue using the Google Cloud console.

Pausing a queue means that the execution and delivery of tasks are stopped. You can still create tasks and push or append them to the queue but the tasks won't be processed. Once the queue is resumed, any backlogged tasks are processed in the order of their addition to the queue backlog.

  1. In the Google Cloud console, go to the Cloud Tasks > Queues page.

    Go to Queues

  2. Select the checkbox for the queue that you want to pause.

  3. Click Pause queue.

  4. At the prompt, click Pause.

  5. To resume the queue, click Resume queue.

Delete queues

You can delete a queue using the Google Cloud console.

If you delete a queue from the Google Cloud console, you must wait 3 days before recreating it with the same name. This waiting period prevents unexpected behaviour in tasks that are executing at the time of deletion or waiting to be executed. It also avoids internal process failures in the delete or recreate cycle.

  1. In the Google Cloud console, go to the Cloud Tasks > Queues page.

    Go to Queues

  2. Select the checkbox for the queue that you want to delete.

  3. Click Delete queue.

  4. At the prompt, type the queue name, and then click Confirm.