Skip to content

Commit 2886980

Browse files
committed
升级 funboost 版本
1 parent 4834952 commit 2886980

File tree

4 files changed

+22
-12
lines changed

4 files changed

+22
-12
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.4
12+
docker run anjia0532/discovery-syncer-python:v2.7.5
1313
```
1414

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

app/scheduler/scheduler.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import os
2+
13
from funboost.timing_job.apscheduler_use_redis_store import funboost_background_scheduler_redis_store
24

35
from core.lib import logger
@@ -6,4 +8,5 @@
68

79

810
def register_scheduler(app):
11+
funboost_background_scheduler_redis_store.set_process_jobs_redis_lock_key(f'{os.getenv("APP_NAME", '')}_process_jobs_redis_lock')
912
funboost_background_scheduler_redis_store.start()

misc/docker/build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,16 @@ echo "Building docker image for discovery-syncer-python:${version}"
66

77
docker build -f Dockerfile -t anjia0532/discovery-syncer-python:${version} ../../
88
docker push anjia0532/discovery-syncer-python:${version}
9+
docker tag anjia0532/discovery-syncer-python:${version} anjia0532/discovery-syncer-python:latest
10+
docker push anjia0532/discovery-syncer-python:latest
911

1012
echo "https://hub.docker.com/r/anjia0532/discovery-syncer-python/tags?page=&page_size=&ordering=&name=${version}"
1113

1214
echo "Building docker image for discovery-syncer-python-backup:${version}"
1315

1416
docker build -f BackupDockerfile -t anjia0532/discovery-syncer-python-backup:${version} ../../tools/
1517
docker push anjia0532/discovery-syncer-python-backup:${version}
18+
docker tag anjia0532/discovery-syncer-python-backup:${version} anjia0532/discovery-syncer-python-backup:latest
19+
docker push anjia0532/discovery-syncer-python-backup:latest
1620

1721
echo "https://hub.docker.com/r/anjia0532/discovery-syncer-python-backup/tags?page=&page_size=&ordering=&name=${version}"

requirements.txt

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
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
1+
fastapi==0.117.1
2+
python-dotenv==1.1.1
3+
typing-extensions==4.15.0
4+
uvicorn[standard]==0.36.0
5+
pytest==8.4.2
66
# pytest-cov==5.0.0
77
# pytest-html==4.1.1
88
# pytest-asyncio==0.23.6
@@ -12,11 +12,14 @@ BeautifulReport==0.1.3
1212
# aiocache~=0.12.2
1313
# databases==0.9.0
1414
# asyncpg==0.29.0
15-
funboost==49.1
16-
pydantic-settings==2.9.1
15+
funboost==50.3
16+
pydantic-settings==2.10.1
17+
persist-queue[extra]
1718
db-libs==1.1
18-
nb-time==2.4
19-
pydantic-yaml==1.5.1
20-
cachetools==6.1.0
19+
nb-time
20+
pydantic-yaml==1.6.0
21+
cachetools==6.2.0
2122
async-timeout==5.0.1
22-
SQLAlchemy==2.0.41
23+
SQLAlchemy==2.0.43
24+
elasticsearch==8.19.1
25+
PyMySQL==1.1.2

0 commit comments

Comments
 (0)