Take the next task waiting for me, or one task by its id

Take the next task that is waiting for me or for anyone, so no one else does it too

Without id, reads the tasks a take may move (waiting ones that name as or no one, and taken ones held longer than the stale-take time), sorts them by take_order (priority, then oldest first), and takes the first: one write of the whole task as taken by as at this time, conditioned on the value it read. When someone else took that task first the write is refused and changes nothing, and the next one is tried, at most take_tries. only_mine keeps only tasks that name as. With id, takes that task, or answers taken null with reason changed (and the task as it now is) when someone else won it. taken is null when there was nothing to take. The same request key gives back the same claim. The caller hands in every record it reads as input.records; this tool reads no store and names no store method. Each write it makes comes back as keep, for the caller to keep in the person's own store.

What it asks for

Nothing: your AI starts it with your words.

Use it from your AI

Connect the AI you already use to Trillion once. Then ask in your own words; your AI finds this tool by what it does and runs it.

Say to your AI: “Use Trillion to take the next task that is waiting for me or for anyone, so no one else does it too”