Skip to content

Commit

Permalink
Merge pull request #512 from julep-ai/f/vertexai-client
Browse files Browse the repository at this point in the history
  • Loading branch information
creatorrr authored Sep 20, 2024
2 parents e2ac3ce + 081ff40 commit abb3c9d
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 abb3c9d

Please sign in to comment.