Skip to content

platform_events / job ​

Trang sinh tự động

Sinh từ ad83b0aea — chạy 820 migration lên PostgreSQL 17 rồi đọc pg_catalog. Mô tả bảng và cột lấy từ COMMENT ON. Không sửa tay: lần chạy docgen sau sẽ ghi đè.

2 bảng. Quay lại platform_events.

job_runs ​

P1-16. One run per (job, VN slot/period or domain key) with lease, attempts, backoff, DEAD and an observable UNKNOWN; transitions guarded by trigger and logged to job_run_events. SYSTEM_ONLY.

public.job_runs · 18 cột · 14 check · 1 unique · 4 index · 3 policy · 4 trigger · RLS bật

CộtKiểuKhoáMô tả
run_iduuidNOT NULLPK
job_nametextNOT NULL
slot_keytextNOT NULL
scheduled_attimestamptzNOT NULL
correlation_idcorrelation_refNOT NULL
statustextNOT NULL
attemptsintegerNOT NULL
available_attimestamptzNOT NULL
lease_ownertext
lease_expires_attimestamptz
last_error_codetext
finished_attimestamptz
replay_countintegerNOT NULL
replayed_byuuid
replay_reasontext
versionintegerNOT NULL
created_attimestamptzNOT NULL
updated_attimestamptzNOT NULL

Khoá chính: run_id

Trỏ ra: không có

Được trỏ tới (1): job_run_events

job_run_events ​

P1-16. Immutable history of every job_runs transition (who leased, outcome codes, replays with actor and reason). Written by trigger only. Retention GAP-EVT-RETENTION. SYSTEM_ONLY.

public.job_run_events · 11 cột · 2 check · 0 unique · 2 index · 2 policy · 2 trigger · RLS bật

CộtKiểuKhoáMô tả
idbigintNOT NULLPK
run_iduuidNOT NULLFK → job_runs
kindtextNOT NULL
from_statustext
to_statustextNOT NULL
attemptsintegerNOT NULL
workertext
error_codetext
actor_iduuid
reasontext
recorded_attimestamptzNOT NULL

Khoá chính: id

Trỏ ra (1):

  • run_id → job_runs · ON DELETE RESTRICT

Được trỏ tới: không có

Sinh từ ad83b0aea · 820 migration · PostgreSQL 17