Skip to content

Commit

Permalink
Merge branch 'dev' into SCRUM-16-implement-tool-call-step
Browse files Browse the repository at this point in the history
  • Loading branch information
HamadaSalhab committed Sep 21, 2024
2 parents dcce707 + abb3c9d commit 5ab9e3a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions agents-api/agents_api/worker/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,26 @@
#!/usr/bin/env python3

import asyncio
import logging

from tenacity import after_log, retry, retry_if_exception_type, wait_fixed

from ..clients import temporal
from .worker import create_worker

logger = logging.getLogger(__name__)
h = logging.StreamHandler()
fmt = logging.Formatter("[%(asctime)s/%(levelname)s] - %(message)s")
h.setFormatter(fmt)
logger.addHandler(h)
logger.setLevel(logging.DEBUG)


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

0 comments on commit 5ab9e3a

Please sign in to comment.