Files
travel-app/node_modules/bullmq/dist/cjs/postgres/commands/clean.sql
2026-08-09 21:56:00 +00:00

4 lines
197 B
SQL

-- Remove jobs of a state older than a timestamp, up to a limit (0 = all);
-- returns removed ids. Params: $1 queue, $2 type, $3 timestamp, $4 limit.
SELECT id FROM clean($1, $2, $3, $4) AS t(id);