Skip to content
Skillv1.0.0

cloud-tasks-queue-setup

Configure cloud tasks queue setup operations. Auto-activating skill for GCP Skills. Triggers on: cloud tasks queue setup, cloud tasks queue setup Part of the GCP Skills skill category. Use when workin

by jeremylongshore(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from jeremylongshore/tons-of-skills-marketplace (skills/14-gcp-skills/cloud-tasks-queue-setup/SKILL.md). Install upstream with npx skills add jeremylongshore/tons-of-skills-marketplace --skill cloud-tasks-queue-setup. Copyright stays with the author (MIT).

Cloud Tasks Queue Setup

Overview

Create and configure Google Cloud Tasks queues for reliable asynchronous task execution. Covers queue creation with rate limiting and retry policies, HTTP and App Engine task targets, task dispatching with scheduling delays, and queue management operations (pause, resume, purge).

Prerequisites

  • Google Cloud project with Cloud Tasks API enabled (gcloud services enable cloudtasks.googleapis.com)
  • gcloud CLI authenticated with roles/cloudtasks.admin or roles/cloudtasks.enqueuer IAM role
  • Target HTTP endpoint or App Engine service to receive dispatched tasks
  • Service account with appropriate permissions for task execution

Instructions

  1. Create a Cloud Tasks queue with rate limiting: gcloud tasks queues create <queue-name> --location=<region> --max-dispatches-per-second=10 --max-concurrent-dispatches=5
  2. Configure retry policy for failed tasks: gcloud tasks queues update <queue-name> --max-attempts=5 --min-backoff=1s --max-backoff=300s --max-doublings=4
  3. Create an HTTP task targeting your endpoint: gcloud tasks create-http-task --queue=<queue-name> --url=https://your-service.run.app/process --method=POST --body-content='<json-payload>'
  4. Schedule a delayed task by adding --schedule-time with an ISO 8601 timestamp up to 30 days in the future
  5. Verify queue status and task counts: gcloud tasks queues describe <queue-name> to check dispatch rate, retry config, and queue state
  6. Manage queue operations: pause (gcloud tasks queues pause), resume (gcloud tasks queues resume), or purge all tasks (gcloud tasks queues purge)

Examples

Setting up an email processing queue: Create a queue with 5 dispatches per second rate limit and 3 max concurrent tasks to avoid overwhelming the email service. Configure retry with exponential backoff (1s min, 60s max, 3 doublings) and 10 max attempts for transient failures.

Scheduling delayed webhook callbacks: Create HTTP tasks with a 15-minute schedule delay to implement webhook retries. Each task POSTs to the callback URL with the original event payload and includes an OIDC token for authentication.

Output

  • Cloud Tasks queue created with rate limiting and retry configuration
  • Task creation commands for HTTP and App Engine targets
  • Queue management commands for operational control

Error Handling

Error Cause Solution
Queue already exists Queue name taken in the specified region Use gcloud tasks queues describe to check existing config; update if needed
PERMISSION_DENIED on task creation Service account lacks cloudtasks.tasks.create permission Grant roles/cloudtasks.enqueuer to the service account
Task handler returns 5xx Target endpoint failed to process the task Tasks auto-retry per queue retry policy; check handler logs for root cause
Rate limit exceeded Dispatch rate exceeds queue configuration Increase max-dispatches-per-second or reduce task creation rate

Resources

Related Skills

Part of the GCP Skills skill category. Tags: gcp, bigquery, vertex-ai, cloud-run, firebase

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/jeremylongshore-tons-of-skills-marketplace-cloud-tasks-q-8f1304/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

jeremylongshore-tons-of-skills-marketplace-cloud-tasks-q-8f1304.ocm.jsonjson
{
  "ocm": "1",
  "id": "jeremylongshore-tons-of-skills-marketplace-cloud-tasks-q-8f1304",
  "kind": "skill",
  "name": "cloud-tasks-queue-setup",
  "description": "Configure cloud tasks queue setup operations. Auto-activating skill for GCP Skills. Triggers on: cloud tasks queue setup, cloud tasks queue setup Part of the GCP Skills skill category. Use when working with cloud tasks queue setup functionality. Trigger with phrases like \"cloud tasks queue setup\", \"cloud setup\", \"cloud\".",
  "publisher": "jeremylongshore",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "gcp",
      "cloud",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Configure cloud tasks queue setup operations. Auto-activating skill for GCP Skills. Triggers on: cloud tasks queue setup, cloud tasks queue setup Part of the GCP Skills skill category. Use when working with cloud tasks queue setup functionality. Trigger with phrases like \"cloud tasks queue setup\", \"cloud setup\", \"cloud\"."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/jeremylongshore/tons-of-skills-marketplace",
      "path": "skills/14-gcp-skills/cloud-tasks-queue-setup/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/jeremylongshore/tons-of-skills-marketplace/blob/HEAD/skills/14-gcp-skills/cloud-tasks-queue-setup/SKILL.md",
      "key": "jeremylongshore/tons-of-skills-marketplace/skills/14-gcp-skills/cloud-tasks-queue-setup/SKILL.md"
    },
    "compatibility": "Designed for Claude Code",
    "allowed_tools": [
      "Read,",
      "Write,",
      "Edit,",
      "Bash(gcloud:*)"
    ],
    "license": "MIT"
  },
  "instructions": "# Cloud Tasks Queue Setup\n\n## Overview\n\nCreate and configure Google Cloud Tasks queues for reliable asynchronous task execution. Covers queue creation with rate limiting and retry policies, HTTP and App Engine task targets, task dispatching with scheduling delays, and queue management operations (pause, resume, purge).\n\n## Prerequisites\n\n- Google Cloud project with Cloud Tasks API enabled (`gcloud services enable cloudtasks.googleapis.com`)\n- `gcloud` CLI authenticated with `roles/cloudtasks.admin` or `roles/cloudtasks.enqueuer` IAM role\n- Target HTTP endpoint or App Engine service to receive ",
  "cost": {
    "context_tokens": 864
  }
}

Fetch it by URL: GET /api/v1/registry/jeremylongshore-tons-of-skills-marketplace-cloud-tasks-q-8f1304/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.