Skip to content

Commit 80aa6c1

Browse files
authored
Merge pull request unclecode#1530 from Sjoeborg/fix/arun-many-returns-none
Fix: run_urls() returns None, crashing arun_many()
2 parents 749d200 + 35dd206 commit 80aa6c1

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

crawl4ai/async_dispatcher.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,8 +455,6 @@ async def run_urls(
455455

456456
# Update priorities for waiting tasks if needed
457457
await self._update_queue_priorities()
458-
459-
return results
460458

461459
except Exception as e:
462460
if self.monitor:
@@ -467,6 +465,7 @@ async def run_urls(
467465
memory_monitor.cancel()
468466
if self.monitor:
469467
self.monitor.stop()
468+
return results
470469

471470
async def _update_queue_priorities(self):
472471
"""Periodically update priorities of items in the queue to prevent starvation"""

deploy/docker/api.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,6 @@ async def handle_crawl_request(
563563
if isinstance(hook_manager, UserHookManager):
564564
try:
565565
# Ensure all hook data is JSON serializable
566-
import json
567566
hook_data = {
568567
"status": hooks_status,
569568
"execution_log": hook_manager.execution_log,

0 commit comments

Comments
 (0)