Ir al contenido

Table: jobs

Esta página aún no está disponible en tu idioma.

Referenced by:

ColumnTypeNullableNotes
iduuidnoDefault gen_random_uuid()
typetextno
payloadjsonbnoDefault '{}'::jsonb
statustextnoDefault 'pending'::text
priorityintegernoDefault 100
attemptsintegernoDefault 0
max_attemptsintegernoDefault 3
claimed_bytextyes
claimed_attimestampyes
lease_expires_attimestampyes
last_errortextyes
resultjsonbyes
origin_server_iduuidyes
scheduled_fortimestampyes
enqueued_attimestampnoDefault now()
started_attimestampyes
finished_attimestampyes
idempotency_keytextyes
  • CONSTRAINT jobs_status_check CHECK ((status = ANY (ARRAY['pending'::text, 'running'::text, 'done'::text, 'failed'::text, 'cancelled'::text])))
CREATE TABLE public.jobs (
id uuid DEFAULT gen_random_uuid() NOT NULL,
type text NOT NULL,
payload jsonb DEFAULT '{}'::jsonb NOT NULL,
status text DEFAULT 'pending'::text NOT NULL,
priority integer DEFAULT 100 NOT NULL,
attempts integer DEFAULT 0 NOT NULL,
max_attempts integer DEFAULT 3 NOT NULL,
claimed_by text,
claimed_at timestamp with time zone,
lease_expires_at timestamp with time zone,
last_error text,
result jsonb,
origin_server_id uuid,
scheduled_for timestamp with time zone,
enqueued_at timestamp with time zone DEFAULT now() NOT NULL,
started_at timestamp with time zone,
finished_at timestamp with time zone,
idempotency_key text,
CONSTRAINT jobs_status_check CHECK ((status = ANY (ARRAY['pending'::text, 'running'::text, 'done'::text, 'failed'::text, 'cancelled'::text])))
);

Please see the schema overview for context. This document was last regenerated on 2026-07-26T08:25:29.520Z.