Harden ops run identity and leases
Assistant: codex Assistant-Model: gpt-5.6-sol Assistant-Session: 01a028de-e2c8-7732-8521-46a7fc5db82f
This commit is contained in:
parent
36161d346f
commit
f0a897e088
13 changed files with 522 additions and 50 deletions
|
|
@ -456,7 +456,7 @@ curl -sS -X POST "http://localhost:8010/ops-runs/claim" \
|
|||
|
||||
# Reopen stale leases
|
||||
curl -sS -X POST "http://localhost:8010/ops-runs/expire-leases" \
|
||||
-H "X-Worker-Token: $ACTIVITY_CORE_WORKER_TOKEN"
|
||||
-H "X-Operator-Token: $ACTIVITY_CORE_OPERATOR_TOKEN"
|
||||
```
|
||||
|
||||
| Env | Default | Meaning |
|
||||
|
|
@ -466,6 +466,12 @@ curl -sS -X POST "http://localhost:8010/ops-runs/expire-leases" \
|
|||
| `OPS_RUN_MAX_ATTEMPTS` | `3` | Fail permanently after N claims |
|
||||
| `OPS_RUN_SLA_HOURS` | `1` | Stuck threshold in status |
|
||||
| `ACTIVITY_CORE_WORKER_TOKEN` | unset | Harness claim auth |
|
||||
| `ACTIVITY_CORE_WORKER_ID` | unset | Exact worker identity bound to claim auth |
|
||||
|
||||
Worker mutations reject a body `worker_id` that differs from
|
||||
`ACTIVITY_CORE_WORKER_ID`, and heartbeat/complete/fail reject a missing or
|
||||
expired lease. Set the token and identity together before starting the claim
|
||||
consumer.
|
||||
|
||||
Glas-backed workers may return the Glas 1.0 `GatewayResult` on complete or
|
||||
fail. Activity Core persists only `result.execution_evidence` plus the existing
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue