mirror of
https://github.com/block/buzz.git
synced 2026-10-27 04:30:52 +00:00
10 lines
417 B
SQL
10 lines
417 B
SQL
CREATE TABLE community_deletion_executor_heartbeats (
|
|
executor_id TEXT PRIMARY KEY,
|
|
mode TEXT NOT NULL CHECK (mode IN ('run', 'drain', 'worker')),
|
|
request_id UUID REFERENCES community_deletion_requests(id) ON DELETE SET NULL,
|
|
started_at TIMESTAMPTZ NOT NULL DEFAULT now(),
|
|
heartbeat_at TIMESTAMPTZ NOT NULL DEFAULT now(),
|
|
draining BOOLEAN NOT NULL DEFAULT false,
|
|
stopped_at TIMESTAMPTZ
|
|
);
|