Basically, once a day I run executeHeartbeat which searches for all "stores" that need updating, and then queue a "executeStoraUpdate" job, which inturn searches for all items in that store that need updating and queue a "executeItemUpdate" job, which calls a third party service and update the price in database.
My understanding is that the default number of connections PgBoss makes to the postgres backend is 10. However, I use render.com have hit the 100 connection limit pretty much every other day. Upon investigating (I ran SELECT * FROM pg_stat_activity;), I found that pg-boss had 20-30 idle connections at any given point.
I have a node app where I call this function fomr our main
app.ts
upon starting –Basically, once a day I run
executeHeartbeat
which searches for all "stores" that need updating, and then queue a "executeStoraUpdate" job, which inturn searches for all items in that store that need updating and queue a "executeItemUpdate" job, which calls a third party service and update the price in database.My understanding is that the default number of connections PgBoss makes to the postgres backend is 10. However, I use render.com have hit the 100 connection limit pretty much every other day. Upon investigating (I ran
SELECT * FROM pg_stat_activity;
), I found that pg-boss had 20-30 idle connections at any given point.I'm using pg-boss version
5.2.3
if it helps.