Skip to main content

Claim a queued run

POST 

/run/:id/claim

Executor protocol. Claims a queued campaign run for the caller, which then executes it: a local run with an API key or login token of the run's organization (hackagent run <id> does this), a cloud run with the cloud worker's token only. The run becomes RUNNING. A cloud claim also returns the run's token (run_token) and the values of the secrets its spec references (env); a cloud run that can no longer run (its spec, endpoints or secrets changed) is failed instead. 409 when the run is no longer queued, says who has it, or when its organization has no free cloud slot.

Request​

Responses​

OK