Canceling a Queued Invocation
SkillAI & modelsCanceling a pending (queued) invocation on an agent. Use when canceling, removing, or aborting an enqueued invocation that has not started yet.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Canceling a Queued Invocation skill
What this skill tells your AI
The instructions your AI receives, as published by golemcloud/golem in golem-skills/skills/common/golem-cancel-queued-invocation/SKILL.md and read by ahel’s review.
Both golem and golem-cli can be used — all commands below work with either binary.
The <AGENT_ID> format depends on the agent's language — refer to the language-specific invocation skills for the exact syntax.
Background
Agent invocations are processed sequentially — one at a time. When an invocation arrives while the agent is already busy, it is enqueued (queued) and waits until the current invocation finishes. Queued invocations can be canceled before they start processing, using their idempotency key.
An idempotency key is a unique string assigned to an invocation. You can set one explicitly when triggering an invocation with --idempotency-key, or use --idempotency-key - to have Golem auto-generate one. The pending invocation count is visible in the agent's metadata (golem agent get).
agent cancel-invocation — Cancel a Queued Invocation
Cancels a pending invocation that has not started yet, identified by its idempotency key.
golem agent cancel-invocation <AGENT_ID> <IDEMPOTENCY_KEY>
- Returns a success message if the invocation was canceled
- If the invocation has already started processing, the cancellation fails (it is too late)
Examples
Cancel a queued invocation with a known idempotency key:
golem agent cancel-invocation CounterAgent("my-counter") my-key-123
Cancel a queued invocation in a specific environment:
golem agent cancel-invocation my-env/CounterAgent("my-counter") my-key-123
Typical Workflow
-
Trigger an invocation with an explicit idempotency key (so you can reference it later):
golem agent invoke --trigger --idempotency-key my-batch-job CounterAgent("c1") increment -
Check that the invocation is pending (pending invocation count > 0):
golem agent get CounterAgent("c1") -
Cancel the pending invocation before it starts:
golem agent cancel-invocation CounterAgent("c1") my-batch-job -
Verify the invocation was canceled (pending invocation count decreased):
golem agent get CounterAgent("c1")
Signals
- GitHub stars
- 2k
- Forks
- 212
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
golem-cancel-queued-invocation- Source
- github.com/golemcloud/golem