Atomically bumps updated_at on both the step and its parent run in a single statement. This prevents FinalizeStale from interleaving between the two touches and finalizing a run whose step heartbeat was just written. The step UPDATE joins through touched_run (via FROM) and reads its RETURNING rows.
(ctx context.Context, arg TouchChatDebugStepAndRunParams)
| 1159 | // mismatched (run_id, step_id) pair cannot silently refresh an |
| 1160 | // unrelated step. |
| 1161 | TouchChatDebugStepAndRun(ctx context.Context, arg TouchChatDebugStepAndRunParams) error |
| 1162 | // Non blocking lock. Returns true if the lock was acquired, false otherwise. |
| 1163 | // |
| 1164 | // This must be called from within a transaction. The lock will be automatically |
no outgoing calls