Skip to content

Task.claim

POST /{namespace}/tasks/{task}/claim

Claim takes an offered Task from a shared queue or a handoff and makes the calling Worker its assignee.

Noun
Task
Mode
do
Event
Task.claimed

Inputs

InputTypeRequiredDescription
taskTaskrequiredThe offered Task.

Outputs

OutputTypeRequiredDescription
taskTaskrequiredThe Task, assigned to the caller.

Effects

  • Emits Task.claimed.
  • Performed by the Supply Manager.
  • Removes the Task from every other Worker’s queue.
  • Releases the claim if the Task sits untouched past its claim window.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.Task.claim

When it waits

GateDefault
Decision classLow: two-way, nothing at stake
Delay windowNone: it runs once review passes.
LimitThe call Limit of the Permission it runs under.
Over the LimitIt waits pending for an Approval from the Founder. Approved, it runs; refused, it ends refused with limit-exceeded; unanswered by its deadline, it ends canceled.