Skip to content

Commit 2eac6e3

Browse files
committed
Smaller batch size
1 parent 7243cd3 commit 2eac6e3

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

apps/backend/src/cron/processQueuedCampaigns.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ import pMap from "p-map"
99
import { Subscriber, Prisma, SubscriberMetadata } from "../../prisma/client"
1010
import { cronJob } from "./cron.utils"
1111

12-
const BATCH_SIZE = 100
12+
// TODO: Make this a config
13+
const BATCH_SIZE = 50
1314

1415
async function getSubscribersForCampaign(
1516
campaignId: string

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.5.3",
2+
"version": "0.5.4",
33
"name": "letterspace",
44
"private": true,
55
"scripts": {

0 commit comments

Comments
 (0)