Skip to content

Commit c4047ba

Browse files
committed
升级 funboost 版本
1 parent 6904eb7 commit c4047ba

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ gateway等网关插件的高扩展性
99
### 通过docker运行
1010

1111
```bash
12-
docker run anjia0532/discovery-syncer-python:v2.7.3
12+
docker run anjia0532/discovery-syncer-python:v2.7.4
1313
```
1414

1515
特别的,`-c ` 支持配置远端http[s]的地址,比如读取静态资源的,比如读取nacos的

app/tasks/task_syncer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def syncer(target: dict):
107107
return
108108
services = discovery_client.get_all_service(target.get("config"))
109109
if len(services) == 0:
110-
logger.warning(f"没有获取到服务列表{target}")
110+
logger.info(f"没有获取到服务列表{target}")
111111
return
112112

113113
logger.info(f"同步服务列表, 作业: {target.get('id')} services: {services}")

core/lib/logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def __init__(self, ding_talk_token: str = None, time_interval: int = 60, ding_ta
108108
self._ding_talk_url = f'https://oapi.dingtalk.com/robot/send?access_token={ding_talk_token}'
109109
self._current_time = 0
110110
self._time_interval = time_interval # 最好别频繁发。
111-
self._msg_template = r'{"msgtype":"markdown","markdown":{"title":"discovery-syncer-python","text":"**时间:** %(asctime)s\n\n**任务:** %(task_id)s\n\n**脚本:** %(pathname)s\n\n**函数:** %(funcName)s\n\n**行号:** %(lineno)s\n\n**信息:** %(msg)s"}}'
111+
self._msg_template = '{"msgtype":"markdown","markdown":{"title":"discovery-syncer-python","text":"**时间:** %(asctime)s\n\n**任务:** %(task_id)s\n\n**脚本:** %(pathname)s\n\n**函数:** %(funcName)s\n\n**行号:** %(lineno)s\n\n**信息:** %(msg)s"}}'
112112
self._lock = Lock()
113113

114114
def emit(self, record):

misc/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
##########################
22
# Build the release image.
3-
FROM python:3.11-slim-bullseye
3+
FROM python:3.12-slim-bullseye
44
LABEL MAINTAINER="AnJia <anjia0532@gmail.com>"
55

66
ENV PYTHONDONTWRITEBYTECODE=1

requirements.txt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
fastapi==0.115.0
2-
python-dotenv==1.0.1
3-
typing-extensions==4.11.0
4-
uvicorn[standard]==0.31.0
5-
pytest==8.3.3
1+
fastapi==0.115.13
2+
python-dotenv==1.1.0
3+
typing-extensions==4.14.0
4+
uvicorn[standard]==0.34.3
5+
pytest==8.4.1
66
# pytest-cov==5.0.0
77
# pytest-html==4.1.1
88
# pytest-asyncio==0.23.6
99
# pytest-trio==0.8.0
10-
httpx==0.27.2
10+
httpx==0.28.1
1111
BeautifulReport==0.1.3
1212
# aiocache~=0.12.2
1313
# databases==0.9.0
1414
# asyncpg==0.29.0
15-
funboost==46.2
16-
pydantic-settings==2.5.2
17-
db-libs==1.0
18-
nb-time==1.8
19-
pydantic-yaml==1.3.0
20-
cachetools==5.5.0
21-
async-timeout==4.0.3
15+
funboost==49.1
16+
pydantic-settings==2.9.1
17+
db-libs==1.1
18+
nb-time==2.4
19+
pydantic-yaml==1.5.1
20+
cachetools==6.1.0
21+
async-timeout==5.0.1

0 commit comments

Comments
 (0)