rpa
This commit is contained in:
parent
63d3bfb669
commit
1676e917cc
|
|
@ -3,4 +3,5 @@
|
|||
.runtime.env
|
||||
.idea
|
||||
.venv
|
||||
test*
|
||||
test*
|
||||
.vscode
|
||||
|
|
@ -7,5 +7,5 @@ deploy by env
|
|||
```shell
|
||||
# --env dev
|
||||
modal deploy --env dev cluster.rpa
|
||||
modal deploy --env dev cluster.rpa_web_end_point
|
||||
#modal deploy --env dev cluster.rpa_web_end_point
|
||||
```
|
||||
|
|
@ -3,15 +3,16 @@ import hashlib
|
|||
import json
|
||||
import os
|
||||
import time
|
||||
from typing import List, Optional, Any
|
||||
from typing import List, Optional
|
||||
|
||||
import modal
|
||||
from loguru import logger
|
||||
from playwright.async_api import async_playwright, Browser, Page
|
||||
from pydantic import BaseModel
|
||||
from tenacity import retry, stop_after_attempt, wait_fixed
|
||||
from ulid import ULID
|
||||
|
||||
from .rpa_comm import LiveStreamProductWatchRequest, LiveStreamResult, ProductSession
|
||||
from .rpa_web_end_point import app as rpa_web_end_point_app
|
||||
|
||||
rpa_image = (modal.Image.debian_slim(python_version="3.11")
|
||||
.pip_install_from_pyproject("../pyproject_rpa.toml")
|
||||
|
|
@ -24,7 +25,7 @@ rpa_image = (modal.Image.debian_slim(python_version="3.11")
|
|||
.add_local_python_source('cluster')
|
||||
)
|
||||
app = modal.App(name='rpa', image=rpa_image, include_source=False)
|
||||
|
||||
app.include(rpa_web_end_point_app)
|
||||
############################ Modal app set############################
|
||||
|
||||
EXPLAINING: str = "讲解中"
|
||||
|
|
|
|||
Loading…
Reference in New Issue