Merge pull request #925 from tnfssc/revert/rm-worker

This commit is contained in:
Sharath 2025-07-10 02:43:40 +05:30 committed by GitHub
commit 134fba5d53
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -1,3 +1,6 @@
from dotenv import load_dotenv
load_dotenv()
from fastapi import FastAPI, Request, HTTPException, Response, Depends, APIRouter from fastapi import FastAPI, Request, HTTPException, Response, Depends, APIRouter
from fastapi.middleware.cors import CORSMiddleware from fastapi.middleware.cors import CORSMiddleware
from fastapi.responses import JSONResponse, StreamingResponse from fastapi.responses import JSONResponse, StreamingResponse
@ -7,7 +10,6 @@ from contextlib import asynccontextmanager
from agentpress.thread_manager import ThreadManager from agentpress.thread_manager import ThreadManager
from services.supabase import DBConnection from services.supabase import DBConnection
from datetime import datetime, timezone from datetime import datetime, timezone
from dotenv import load_dotenv
from utils.config import config, EnvMode from utils.config import config, EnvMode
import asyncio import asyncio
from utils.logger import logger, structlog from utils.logger import logger, structlog
@ -28,8 +30,6 @@ from services import email_api
from triggers import api as triggers_api from triggers import api as triggers_api
load_dotenv()
if sys.platform == "win32": if sys.platform == "win32":
asyncio.set_event_loop_policy(asyncio.WindowsProactorEventLoopPolicy()) asyncio.set_event_loop_policy(asyncio.WindowsProactorEventLoopPolicy())