You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Agenda is awesome.
Given this foreword statement, I would like to propose to define a special type of jobs, batch processing jobs. Their definition will work on an array of jobs that are to be executed at the same time (including all delayed ones). Something in the lines of: agenda.defineBatch("awesome batch job", async (jobArray) => { // batch process the jobArray, for example batch emails into groups and send with one transaction per group });
Thus we would optimize bandwidth, job processing rates and would smooth the job execution indexes (cpu load, memory load, latencies) over time.
If they exist though and I have not noticed, blame is on me.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Agenda is awesome.
Given this foreword statement, I would like to propose to define a special type of jobs, batch processing jobs. Their definition will work on an array of jobs that are to be executed at the same time (including all delayed ones). Something in the lines of:
agenda.defineBatch("awesome batch job", async (jobArray) => { // batch process the jobArray, for example batch emails into groups and send with one transaction per group });
Thus we would optimize bandwidth, job processing rates and would smooth the job execution indexes (cpu load, memory load, latencies) over time.
If they exist though and I have not noticed, blame is on me.
Beta Was this translation helpful? Give feedback.
All reactions