Each available work item
Take items one by one until the queue is empty; mark each completed or failed inside the loop.
Loop type in the Work queues toolkit · id ooa.workload/each_item · 4 inputs (1 required), no outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Queue | String | Yes | Queue name. | |
| Maximum items | Number | No | 1000 | Stop after this many items. |
| Status | String | No | new | Which items to work (G6). new: new items, and deferred ones that are due. on_hold: items put on hold or deferred, due or not. data_error: failed items whose error was marked a business exception. failed: other failed items (system errors). |
| Fetch count | Number | No | 1 | How many items to take from the queue in one go (G6); each is marked in progress when taken. Items taken but not reached when the loop stops early stay in progress until unlocked. |