1
This commit is contained in:
62
_doc/full_flow删除说明.md
Normal file
62
_doc/full_flow删除说明.md
Normal file
@@ -0,0 +1,62 @@
|
||||
# full_flow 删除说明
|
||||
|
||||
## ✅ 已删除的 full_flow 相关代码
|
||||
|
||||
### 1. 任务处理器注册
|
||||
- ✅ 删除了 `registerTaskHandlers()` 中的 `full_flow` 处理器注册
|
||||
- ✅ 删除了 `handleFullFlowTask()` 方法
|
||||
|
||||
### 2. 手动任务处理
|
||||
- ✅ 修改了 `handleManualJobRequest()`,移除了 `full_flow` 的特殊处理
|
||||
- ✅ 将 `manualExecuteJobFlow()` 标记为废弃,抛出错误提示
|
||||
|
||||
### 3. 定时任务
|
||||
- ✅ 修改了 `executeScheduledJobFlow()`,移除了 `full_flow` 任务添加
|
||||
- ✅ 添加了注释说明 `full_flow` 已废弃
|
||||
|
||||
### 4. 任务队列
|
||||
- ✅ 删除了 `taskQueue.js` 中 `getTaskCommands()` 的 `case 'full_flow':` 分支
|
||||
|
||||
### 5. 配置
|
||||
- ✅ 删除了 `config.js` 中 `taskTimeouts.full_flow` 配置
|
||||
- ✅ 删除了 `config.js` 中 `taskPriorities.full_flow` 配置
|
||||
|
||||
### 6. 数据模型注释
|
||||
- ✅ 更新了 `task_status.js` 模型中的 `taskType` 注释,移除了 `full_flow` 说明
|
||||
|
||||
## 📝 保留的方法(已废弃)
|
||||
|
||||
以下方法已标记为废弃,但保留在代码中以便向后兼容:
|
||||
|
||||
1. **`manualExecuteJobFlow()`**
|
||||
- 状态:已废弃
|
||||
- 行为:抛出错误,提示使用其他任务类型
|
||||
- 位置:`api/middleware/schedule/index.js:681`
|
||||
|
||||
2. **`executeScheduledJobFlow()`**
|
||||
- 状态:定时任务已注释,方法保留但不再添加 `full_flow` 任务
|
||||
- 位置:`api/middleware/schedule/index.js:578`
|
||||
|
||||
## ⚠️ 注意事项
|
||||
|
||||
1. **定时任务已禁用**
|
||||
- `executeScheduledJobFlow()` 的定时任务调用已被注释
|
||||
- 如需恢复定时任务,请使用其他任务类型(如 `auto_deliver`)
|
||||
|
||||
2. **替代方案**
|
||||
- 如需执行完整流程,请使用:
|
||||
- `auto_deliver` - 自动投递任务
|
||||
- `get_job_list` - 获取岗位列表
|
||||
- `apply_job` - 投递简历
|
||||
- 其他独立任务类型
|
||||
|
||||
3. **向后兼容**
|
||||
- `manualExecuteJobFlow()` 方法保留在导出接口中,但会抛出错误
|
||||
- 调用此方法的代码需要更新为使用其他任务类型
|
||||
|
||||
## 🔄 后续建议
|
||||
|
||||
如果不再需要以下方法,可以考虑完全删除:
|
||||
- `executeScheduledJobFlow()` - 如果定时任务不再使用
|
||||
- `manualExecuteJobFlow()` - 如果所有调用都已更新
|
||||
|
||||
Reference in New Issue
Block a user