julep-ai / julep

Build AI agents and workflows with a simple API. Supabase for AI agents
https://julep.ai
Apache License 2.0
883 stars 69 forks source link

fix: Retry worker on runtime errors #512

Closed whiterabbit1983 closed 1 week ago

whiterabbit1983 commented 1 week ago

[!IMPORTANT] Adds retry mechanism and logging to main() in __main__.py for handling RuntimeError exceptions.

  • Adds retry mechanism to main() in __main__.py using tenacity for RuntimeError exceptions.
  • Retries every 20 seconds to ensure worker initialization robustness.
  • Configures logging to capture retry attempts at DEBUG level.

This description was created by Ellipsis for 791ad2beac430880ac33692bdf94d50eb8692b9b. It will automatically update as commits are pushed.