logger catagorizing libs
This commit is contained in:
parent
7a8e542ada
commit
4726a85cf3
12 changed files with 35 additions and 36 deletions
|
|
@ -166,7 +166,7 @@ export async function processBatchJob(jobData: BatchJobData, queueName: string):
|
|||
queueManager.getQueue(queueName);
|
||||
const { payloadKey, batchIndex, totalBatches, itemCount, totalDelayHours } = jobData;
|
||||
|
||||
logger.debug('Processing batch job', {
|
||||
logger.trace('Processing batch job', {
|
||||
batchIndex,
|
||||
totalBatches,
|
||||
itemCount,
|
||||
|
|
@ -187,7 +187,7 @@ export async function processBatchJob(jobData: BatchJobData, queueName: string):
|
|||
const delayPerBatch = totalDelayMs / totalBatches; // Time allocated for each batch
|
||||
const delayPerItem = delayPerBatch / items.length; // Distribute items evenly within batch window
|
||||
|
||||
logger.debug('Calculating job delays', {
|
||||
logger.trace('Calculating job delays', {
|
||||
batchIndex,
|
||||
delayPerBatch: `${(delayPerBatch / 1000 / 60).toFixed(2)} minutes`,
|
||||
delayPerItem: `${(delayPerItem / 1000).toFixed(2)} seconds`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue