Uses COALESCE so that passing NULL from Go means "keep the existing value." This is intentional: debug rows follow a write-once-finalize pattern where fields are set at creation or finalization and never cleared back to NULL. The @now parameter keeps updated_at under the caller's clock, matching the
(ctx context.Context, arg UpdateChatDebugStepParams)
| 1206 | // parameter keeps updated_at under the caller's clock, matching |
| 1207 | // the injectable quartz.Clock used by FinalizeStale sweeps. |
| 1208 | UpdateChatDebugStep(ctx context.Context, arg UpdateChatDebugStepParams) (ChatDebugStep, error) |
| 1209 | // Bumps the heartbeat timestamp for the given set of chat IDs, |
| 1210 | // provided they are still running and owned by the specified |
| 1211 | // worker. Returns the IDs that were actually updated so the |
no outgoing calls