Update apps/api/src/services/queue-jobs.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Gergő Móricz 2025-04-04 22:09:16 +02:00 committed by GitHub
parent 6287db8492
commit 5457b71454
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -230,8 +230,7 @@ export async function addScrapeJobs(
// equals 2x the max concurrency
if(addToCQ.length > maxConcurrency) {
logger.info("Concurrency limited 2x (multiple) - Concurrency queue jobs: " + addToCQ.length + "Max concurrency: " + maxConcurrency + "Team ID: " + jobs[0].data.team_id);
logger.info(`Concurrency limited 2x (multiple) - Concurrency queue jobs: ${addToCQ.length} Max concurrency: ${maxConcurrency} Team ID: ${jobs[0].data.team_id}`);
// Only send notification if it's not a crawl or batch scrape
if (!isCrawlOrBatchScrape(dontAddToCCQ[0].data)) {
const shouldSendNotification = await shouldSendConcurrencyLimitNotification(dontAddToCCQ[0].data.team_id);