GCP Cloud Task Support

Create and manage Google Cloud Task queues from the DuploCloud Portal

Google Cloud Tasks is a fully managed service that enables you to run asynchronous background work using task queues. Queues help offload work from your application, manage retries, and control task execution rates, improving system efficiency and resilience.

DuploCloud simplifies Google Cloud Tasks by allowing you to create and manage task queues and individual tasks directly from the Portal. This lets you easily incorporate background processing into your GCP workloads without writing scripts or configuring the service manually in Google Cloud.

Creating a Cloud Task Queue

  1. In the DuploCloud Portal, navigate to Cloud Services -> Cloud Tasks.

  2. Select the Queues tab.

  3. Click Add. The Create Queue pane displays.

    Create Queue pane
  4. Provide a Name for the queue.

  5. In the Location list box select the GCP region where the queue will be created (e.g., us-central1).

  6. Click Create to provision the queue in GCP. Once created, the queue appears in the list on the Queues tab.

    Queues tab in the DuploCloud Portal

Managing Cloud Task Queues

To manage an existing queue:

  1. In the DuploCloud Portal, navigate to Cloud Services -> Cloud Tasks.

  2. Select the Queues tab.

  3. Click the menu icon () in the row of the queue you want to manage.

    Queues tab with menu options highlighted
  4. Choose one of the following actions:

    • GCP Console: opens the selected queue in the Google Cloud Console for advanced configuration and monitoring.

    • Delete: permanently removes the queue and any associated tasks from your GCP environment.

Creating a Task in a Cloud Task Queue

Once a queue is created, you can add individual tasks:

  1. In the DuploCloud Platform, navigate to Cloud Services -> Cloud Tasks.

  2. Select the queue name from the NAME column.

  3. Select the Tasks tab.

  4. Click Add. The Create Task pane displays.

    Create Task pane
  5. Complete the required fields:

Name

Enter a unique name for the task. This field is required.

Task Type

Select the type of task, e.g., Http or AppEngine.

URL

Enter the full URL for the HTTP target. It must begin with http:// or https://.

HTTP Method

Choose the HTTP method to use for the request, e.g., Post.

Request Body

Optionally, enter a payload to include in the request body. This is supported for most HTTP methods that allow a body, such as POST, PUT, and PATCH.

Add a Header

Optionally, select this option to include one or more custom HTTP headers. For each header, enter a Name and Value.

  1. Click Submit to create the task. Once created, the task appears in the list under the Tasks tab.

    Tasks tab for a Cloud Task Queue in the DuploCloud Portal

Managing Tasks in a Queue

Once tasks have been created, you can manage them directly from the DuploCloud Portal:

  1. Navigate to Cloud Services -> Cloud Tasks.

  2. Click the name of the queue that contains the task you want to manage.

  3. Select the Tasks tab.

  4. In the row of the task you want to manage, click the menu icon ().

    Tasks tab with menu options highlighted
  5. Choose one of the following actions:

JSON

View the full task definition in JSON format.

Force Run

Immediately execute the task, bypassing its scheduled run time.

Delete

Permanently remove the task from the queue.

Additional Resources

Last updated

Was this helpful?