Files
warmbly/internal/infrastructure/db/migrations/000349_task_dispatch_claim.up.sql
T

3 lines
164 B
SQL

-- A local dispatcher's claim on a due task; other replicas skip it until it lapses.
ALTER TABLE tasks ADD COLUMN IF NOT EXISTS dispatch_claimed_until timestamptz;