Poll an environment's queue for new work
One step with Anthropic. We can help you get access.
Look something up
Poll an environment's queue for new work
with Anthropic
Use Anthropic: its Anthropic Environments API lets you poll an environment's queue for new work in a single step (GET /v1/environments/{environment_id}/work/poll?beta=true). capabilities.work can help you get signed up and connected.
- How does a self-hosted sandbox worker pick up the next piece of work for an environment?
- Can a worker long-poll for work and reclaim items that were left unfinished?
Say it to your AI assistant
- Poll environment {environment_id} for the next work item, waiting up to {block_ms} ms.
- As worker {worker_id}, pull work from environment {environment_id} and reclaim items older than {reclaim_older_than_ms} ms.
For your developer
GET /v1/environments/{environment_id}/work/poll?beta=true in Anthropic Environments API. Full spec on APIs.io.