@@ -79,7 +79,7 @@ async function addScrapeJobRaw(
79
79
// If above by 2x, send them an email
80
80
// No need to 2x as if there are more than the max concurrency in the concurrency queue, it is already 2x
81
81
if ( concurrencyQueueJobs > maxConcurrency ) {
82
- logger . info ( "Concurrency limited 2x (single) - " , "Concurrency queue jobs: " , concurrencyQueueJobs , "Max concurrency: " , maxConcurrency ) ;
82
+ logger . info ( "Concurrency limited 2x (single) - " , "Concurrency queue jobs: " , concurrencyQueueJobs , "Max concurrency: " , maxConcurrency , "Team ID: " , webScraperOptions . team_id ) ;
83
83
// sendNotificationWithCustomDays(webScraperOptions.team_id, NotificationType.CONCURRENCY_LIMIT_REACHED, 10, false).catch((error) => {
84
84
// logger.error("Error sending notification (concurrency limit reached): ", error);
85
85
// });
@@ -168,7 +168,7 @@ export async function addScrapeJobs(
168
168
169
169
// equals 2x the max concurrency
170
170
if ( addToCQ . length > maxConcurrency ) {
171
- logger . info ( "Concurrency limited 2x (multiple) - " , "Concurrency queue jobs: " , addToCQ . length , "Max concurrency: " , maxConcurrency ) ;
171
+ logger . info ( "Concurrency limited 2x (multiple) - " , "Concurrency queue jobs: " , addToCQ . length , "Max concurrency: " , maxConcurrency , "Team ID: " , jobs [ 0 ] . data . team_id ) ;
172
172
// sendNotificationWithCustomDays(jobs[0].data.team_id, NotificationType.CONCURRENCY_LIMIT_REACHED, 10, false).catch((error) => {
173
173
// logger.error("Error sending notification (concurrency limit reached): ", error);
174
174
// });
0 commit comments