Files
2026-07-13 13:17:40 +08:00

16 lines
288 B
Python

from ray import serve
@serve.deployment
class TestDeployment:
def __init__(self):
import pymysql
from sqlalchemy import create_engine
pymysql.install_as_MySQLdb()
create_engine("mysql://some_wrong_url:3306").connect()
app = TestDeployment.bind()