op: lock
Acquire a concurrency lock for a key within the current rule scope.
Allowed phases
| Phase | Status |
|---|---|
preflight | ✗ forbidden |
core | ✓ allowed |
side_effects | ✓ allowed |
Syntax
- op: lock
key: item.skuParameters
| Field | Required | Description |
|---|---|---|
key | yes | Lock key expression (often item.sku inside for_each) |
Behavior
- Pair with
unlockin the same scope (typically inside the samefor_eachiteration). - Not allowed in preflight.
Related operations
See also
- Operations index — all ops by phase
- actions — rule structure and phases
- Intents: Rules — narrative examples