-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
- Error Handling & Resilience
Issue: Limited error handling, no retry logic for external API calls
∙ Nodes don’t handle API failures gracefully (nodes.py:80, 272)
∙ No retry mechanism for LLM calls, web scraping, or image generation
∙ Silent failures in image generation (nodes.py:275-276)
Recommendations:
# Add exponential backoff retry decorator
from tenacity import retry, stop_after_attempt, wait_exponential
@retry(stop=stop_after_attempt(3), wait=wait_exponential(multiplier=1, min=2, max=10))
async def fetch_with_retry(url: str):
...
# Better error handling in nodes
try:
image_url = await generate_image(image_prompt, image_provider)
except ImageGenerationError as e:
self.log(f"Image generation failed: {e}", level="error")
# Fallback to free image service
image_url = await fetch_image_unsplash(fallback_query)Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels