Task size (Pay-Per-Task) β
Pay-per-task categories, time limits, and claim rules.
Pay-per-task model β
The pay-per-task model is based on task size categories. Each category defines two limits:
- Maximum Computing Time (C): per-task execution time on the worker. If the task exceeds C, the task is stopped and failed.
- Maximum Deal Time (D): overall time window for a task in the deal. If the task isnβt completed within D, the requester can claim (i.e., recover according to protocol rules). On claim, the requester recovers the RLC escrowed for that task, no payout is made to the worker and workerpool.
Categories Description:
| Category | Maximum Computing Time (C) | Maximum Deal Time (D) |
|---|---|---|
| 0 β XS | 5 min | 50 min |
| 1 β S | 20 min | 200 min (3h20m) |
| 2 β M | 1 hour | 10h |
| 3 β L | 3 hours | 30h (1d6h) |
| 4 β XL | 10 hours | 100h (4d4h) |
- Workers allocate up to C per task. Beyond C, the app is stopped.
- Requesters can claim after D if the task isnβt completed.
How to pick a category (quick guide) β
Use this decision table to choose a safe category for your workload.
| Typical workload | Suggested category |
|---|---|
| Short scripts / small data processing | Cat 0β1 |
| Medium data processing (10-15min) | Cat 2 |
| Heavy ML inference / long simulations | Cat 3β4 |
Use the iExec SDK (CLI/API) to set the category in app, request, or workerpool orders.
For commands and examples, see the iExec SDK GitHub repository.
