Say you are still working on an effect
ratchet_heartbeat_effectCall this periodically during a long action you were authorised to perform, before the lease expires. It tells Ratchet you are alive and extends your hold. Use it when work turns out to take longer than the lease you asked for — a slow vendor, a large export, a retrying upload. Without it, the lease expires while you are still working, the effect is recorded as having an UNKNOWN outcome, and your report is then refused. If it fails with lease_expired or lease_lost, STOP. Your hold is gone and the outcome is already recorded as unknown. Do not keep going and do not retry the action — call ratchet_begin_effect to find out where things actually stand.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| effect_id | Yes | ||
| lease_token | Yes | ||
| extend_seconds | No | How much longer you need, from now. Clamped to the policy maximum. |