Back to Skills

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 working with cloud tasks queue setup functionality. Trigger with phrases like "cloud …

gogcp
By jeremylongshore
2.5k345Updated todayPythonMIT

Skill Content

# 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

- Cloud Tasks documentation: https://cloud.google.com/tasks/docs
- Queue configuration reference: https://cloud.google.com/tasks/docs/configuring-queues
- Creating HTTP tasks: https://cloud.google.com/tasks/docs/creating-http-target-tasks
- IAM permissions: https://cloud.google.com/tasks/docs/access-control

## Related Skills

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

How to use

  1. Copy the skill content above
  2. Create a .claude/skills directory in your project
  3. Save as .claude/skills/claude-code-plugins-plus-skills-cloud-tasks-queue-setup.md
  4. Use /claude-code-plugins-plus-skills-cloud-tasks-queue-setup in Claude Code to invoke this skill

Tons of Skills — Claude Code Plugins Marketplace

Built for Claude Code. Every plugin and skill in this catalog targets Anthropic's official CLI.

Release CLI Plugins Skills GitHub Stars Sponsor: Kobiton Buy me a monster

432 plugins, 2,769 skills, 297 agents, 30 community contributors — validated and ready to install.

Why this repo

  • One canonical catalog — every plugin in marketplace.extended.json is the same marketplace.json the Claude Code CLI reads. No registries to reconcile, no manual sync step.
  • Spec-correct or it doesn't ship — every PR runs the Intent Solutions validator against the AgentSkills.io open standard plus Claude Code's skill and plugin references. C-grade rejects merge.
  • 8-field marketplace frontmatter is enforced, not aspirational — name / description / allowed-tools / version / author / license / compatibility / tags. The 100-point rubric is public.
  • Forge-generated and hand-authored, both first-class/skill-creator --forge <api-name> builds production-grade plugins from any REST API with an audit trail; hand-authored plugins use the same templates and validators.
  • Production-tested patterns — the Learning Lab, 11 production playbooks, and a public wiki cover the failure modes that show up at scale (rate limits, MCP reliability, multi-agent cost caps, incident debugging).
pnpm add -g @intentsolutionsio/ccpi    # Install the CLI
ccpi install devops-automation-pack     # Install any plugin

Or use Claude's built-in command:

/plugin marketplace add jeremylongshore/claude-code-plugins

Browse the marketplace | Explore plugins | Download bundles

<!-- KILLER-SKILL:START — do not edit; run `node scripts/render-spotlight.mjs` -->

Killer Skill of the Weekkobiton-automate by Kobiton Inc.

Real mobile devices on demand — no emulators, no flaky CI

Kobiton's automate plugin gives Claude Code, Cursor, Codex, and Gemini CLI direct access to the Kobiton real-device cloud via remote MCP. 12 tools across three surfaces — Devices (list / reserve / status / terminate), Sessions (list / get / artifacts / terminate), and Apps (upload / confirm / list / get) — plus 3 specialist agents for device picking, Appium capability reconciliation, and session triage. One install, real iOS + Android hardware, no emulator drift.

"Mobile testing that runs where the bugs actually live — on the device, not the simulator." — Kobiton Inc.

Grade: A | Week of May 20, 2026 (W21) | Browse on Marketplace

Previous picks: skyvern, code-cleanup, web-analytics, token-optimizer, executive-assistant-skills, skill-creator, cursor-pack, crypto-portfolio-tracker. See all at tonsofskills.com.

<!-- KILLER-SKILL:END -->

Quick Start

Option 1: CLI (Recommended)

pnpm add -g @intentsolutionsio/ccpi
ccpi search devops              # Find plugins by keyword
ccpi install devops-automation-pack
ccpi list --installed           # See what's installed
ccpi update                     # Pull latest versions

Option 2: Claude Built-in Commands

/plugin marketplace add jeremylongshore/claude-code-plugins
/plugin install devops-automation-pack@claude-code-plugins-plus

Already using an older install? Run /plugin marketplace remove claude-code-plugins and re-add with the command above to switch to the new slug.

Browse the catalog: Visit tonsofskills.com or explore plugins/


<!-- NPM-STATS:START — do not edit; daily cron updates this -->

📦 Live npm Downloads

Across 425 published packages in the claude-code-plugins namespace. Updated daily by GitHub Actions.

WindowAll packagesEstablished (>30d)
Last 24 hours195183
Last 7 days2,4772,379
Last 30 days14,13011,983

<sub>"Established" excludes packages first published within the last 30 days, so a bulk-publish event doesn't dominate the headline.</sub>

Top 10 by last 30 days:

<sub>Last refreshed 2026-05-28T01:44:16.713Z.</sub>

<!-- NPM-STATS:END -->
<!-- AUTO-TOC:START — do not edit; run `node scripts/generate-readme-toc.mjs` -->

Browse Plugins by Category

Jump to any of the 19 categories below. Plugin counts are catalog totals — auto-generated from marketplace.extended.json.

AI & Machine Learning

🤖 36 plugins · category slug: ai-ml

PluginDescription
ai-ethics-validatorAI ethics and fairness validation
ai-sdk-agentsMulti-agent orchestration with AI SDK v5 - handoffs, routing, and coordination for any AI provider (OpenAI, Anthropic, Google)
anomaly-detection-systemDetect anomalies and outliers in data
automl-pipeline-builderBuild AutoML pipelines
classification-model-builderBuild classification models
clustering-algorithm-runnerRun clustering algorithms on datasets
computer-vision-processorComputer vision image processing and analysis
data-preprocessing-pipelineAutomated data preprocessing and cleaning pipelines
data-visualization-creatorCreate data visualizations and plots
dataset-splitterSplit datasets for training, validation, and testing
deep-learning-optimizerDeep learning optimization techniques
`experiment-tracking-setup

View source on GitHub