refactor: 移除事务、简化日志、轮询改2秒、删除重建脚本
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
## 功能概述
|
||||
|
||||
- **守护进程模式**:持续监控数据库,自动处理新数据(默认10秒轮询)
|
||||
- **守护进程模式**:持续监控数据库,自动处理新数据(默认2秒轮询)
|
||||
- **批量处理模式**:10张图片一个请求,多请求并发执行
|
||||
- **内容审核处理**:自动识别审核失败图片,标记状态并记录原因
|
||||
- **RESTful API 服务**:提供标签衍生的 HTTP 接口
|
||||
@@ -90,8 +90,8 @@ export DB_PASSWORD=your-password
|
||||
# 持续监控数据库,自动处理新数据
|
||||
python image_tag_derive.py --daemon
|
||||
|
||||
# 指定轮询间隔(默认10秒)
|
||||
python image_tag_derive.py --daemon --interval 10
|
||||
# 指定轮询间隔(默认2秒)
|
||||
python image_tag_derive.py --daemon --interval 2
|
||||
|
||||
# 并发配置
|
||||
python image_tag_derive.py --daemon --batch-size 50 --concurrency 3
|
||||
@@ -123,7 +123,7 @@ python image_tag_derive.py --id 16495 16496 16497
|
||||
| 参数 | 说明 |
|
||||
|------|------|
|
||||
| `--daemon` | 守护模式:持续监控数据库 |
|
||||
| `--interval` | 轮询间隔(秒),默认10秒 |
|
||||
| `--interval` | 轮询间隔(秒),默认2秒 |
|
||||
| `--limit` | 限制处理数量(测试用) |
|
||||
| `--start-id` | 起始ID(断点续传) |
|
||||
| `--end-id` | 结束ID |
|
||||
|
||||
Reference in New Issue
Block a user