Set limit as env

This commit is contained in:
anosatsuk124 committed 2025-06-07 12:11:13 +09:00
1 parent eae8e4d15a
commit 39f088641c
2 files changed
+5 -1

No files matched your search

+3 -1
View File
@@ -193,7 +193,9 @@ async function processUnprocessedArticles(): Promise<void> {
try {
// Get unprocessed articles (limit to prevent overwhelming)
const unprocessedArticles = await getUnprocessedArticles(50);
const unprocessedArticles = await getUnprocessedArticles(
Number.parseInt(import.meta.env["LIMIT_UNPROCESSED_ARTICLES"] || "10"),
);
if (unprocessedArticles.length === 0) {
console.log("ℹ️ No unprocessed articles found.");