Skip to content

Commit

Permalink
fix: Retry worker on runtine errors
Browse files Browse the repository at this point in the history
  • Loading branch information
whiterabbit1983 committed Sep 20, 2024
1 parent 6b3ab54 commit 7aedee0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions agents-api/agents_api/worker/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@

import asyncio

from tenacity import retry, retry_if_exception_type, wait_fixed

from ..clients import temporal
from .worker import create_worker


@retry(wait=wait_fixed(20), retry=retry_if_exception_type(RuntimeError))
async def main():
"""
Initializes the Temporal client and worker with TLS configuration (if provided),
Expand Down

0 comments on commit 7aedee0

Please sign in to comment.