update: increase limit of getBulkSnapshotsInNextSecond

This commit is contained in:
alikia2x (寒寒) 2025-03-27 04:05:35 +08:00
parent 49098763f1
commit 6a7f246562
Signed by: alikia2x
GPG Key ID: 56209E0CCD8420C6

View File

@ -275,7 +275,7 @@ export async function getBulkSnapshotsInNextSecond(client: Client) {
FROM snapshot_schedule
WHERE started_at <= NOW() + INTERVAL '15 seconds' AND status = 'pending' AND type = 'normal'
ORDER BY started_at
LIMIT 100;
LIMIT 1000;
`;
const res = await client.queryObject<SnapshotScheduleType>(query, []);
return res.rows;