一键导入
my-queue-api
Durable job queue — enqueue work and have it retried against your HTTP consumer, with concurrency caps and a dependency DAG.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Durable job queue — enqueue work and have it retried against your HTTP consumer, with concurrency caps and a dependency DAG.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Deploy JavaScript functions to the MyAPI edge runtime (Cloudflare Workers). Register a function, upload a single-file JS bundle, get a live HTTP invocation URL or run it on a cron schedule. Each function gets a scoped capability key for cross-slot calls.
Take payments via Stripe — one-off or recurring. Connect your own Stripe account, then create hosted Stripe Checkout URLs. No raw card data ever touches your code.
Tracking pixel + identity resolution for MyAPI funnels and email. Capture visits and events, resolve known users to anonymous sessions, stream interaction events for analytics. Pairs with mycrmapi for auto-ingest of pixel_visit events on known contacts.
Auth, organizations, and billing hub. Start here to get an api_key and org_id — every other service depends on both.
Saved audiences = named Goldfox-filter snapshots over the people or company database. Build a target list once, name it, reuse it across campaigns, refresh to re-evaluate against current data. The persistence layer on top of my-people-api + my-company-api.
Register new domains and manage edge settings. Required before a funnel can go live on a custom URL.
| name | my-queue-api |
| version | 1.0.0 |
| description | Durable job queue — enqueue work and have it retried against your HTTP consumer, with concurrency caps and a dependency DAG. |
| triggers | ["queue","job queue","background job","enqueue","retry","async work","dead letter","delayed job","concurrency"] |
| checksum | sha256-pending |
A queue is a named, durable pipeline of jobs. Each queue has an HTTP consumer_url; every job is POSTed there, and a 2xx response succeeds the job. Failed jobs retry with backoff up to max_attempts, then dead-letter.
queue is the durable async machine work layer. Use it when work must run reliably, eventually — not inline with the request that triggered it.
A queue is created with:
| Field | Meaning |
|---|---|
consumer_url | HTTP(S) endpoint each job payload is POSTed to. A 2xx succeeds the job. |
max_attempts | Retries before a job dead-letters (default 5). |
max_concurrency | Max jobs dispatched at once (default 5). |
A job carries an arbitrary JSON payload (≤256 KB). Jobs support:
dedup_key — idempotency: a repeated key returns the existing job.delay_seconds — hold the job before it becomes eligible.depends_on — job ids this job waits on. Immutable — a DAG by construction. A job with unsucceeded depends_on starts blocked.queue vs workflow vs task — see docs/orchestration-decision-guide.md. Short version: workflow reacts to inbound webhooks inline; queue runs durable retried machine work; task is for work that needs an agent/human decision.
| Command | What it does |
|---|---|
myapi queue create <name> --consumer-url <url> [--max-attempts <n>] [--max-concurrency <n>] | Create a queue |
myapi queue list | List queues in your org |
myapi queue get <name> | Show a queue's retry/concurrency policy |
myapi queue enqueue <name> --payload <json> [--dedup-key <k>] [--delay <s>] [--depends-on <id,id>] | Enqueue a job |
myapi queue jobs <name> [--status <s>] [--limit <n>] | List a queue's jobs |
myapi queue job <job_id> | Show a single job's status |
# 1. Create a queue whose jobs POST to your handler
myapi queue create thumbnails \
--consumer-url https://fn.myapi.com/<org>/<fn_id> \
--max-attempts 5 --max-concurrency 10
# 2. Enqueue work — idempotent on --dedup-key
myapi queue enqueue thumbnails \
--payload '{"asset_id":"a_123","size":256}' \
--dedup-key a_123-256
# 3. A job that waits on others (DAG)
J1=$(myapi queue enqueue build --payload '{"step":1}' --json | jq -r .id)
myapi queue enqueue build --payload '{"step":2}' --depends-on $J1
# 4. Inspect
myapi queue jobs thumbnails --status dead
myapi queue job <job_id>
consumer_url succeeds the job; anything else counts as a failed attempt.max_attempts a job goes to status: dead (the dead-letter state) — it is not retried further.pending, blocked, running, succeeded, dead.depends_on is immutable: the DAG is declared at enqueue time.payload is capped at 256 KB.Run myapi queue --help for the full flag reference.