Next Task
Claim the next available task for role.
Pass claimed_by_session as a query param to record which parent orchestrator session owns the claim.
Pass parent_session_id to restrict claiming to tasks that were created under that coordinator session. Workers belonging to a coordinator should always pass their coordinator's session ID here to avoid stealing tasks from other namespaces.
get/tasks/next/{role}
Path parameters
rolestring required
Query parameters
claimed_by_sessionstring nullable
parent_session_idstring nullable
Response
Successful Response