Skip to content

Commit 799786d

Browse files
author
willzhen
committed
Update readme
1 parent 13fc65e commit 799786d

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

readme.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
3. /GetOutputVideo, 如果任务已经完成,输入 TaskId,返回已经完成的视频路径结果。
9696
4. /Stop, 如果任务执行时间过长,可以支持停止。
9797

98-
服务代码参考 [video_cut_service.go](https://github.com/memory-overflow/light-task-scheduler/blob/dev/demo-video-cut/example/videocut_example/video_cut/video_cut_service.go)
98+
服务代码参考 [video_cut_service.go](https://github.com/memory-overflow/light-task-scheduler/blob/main/example/videocut_example/video_cut/video_cut_service.go)
9999

100100
现在我们通过本任务调度框架实现一个对裁剪任务进行调度系统,可以控制任务并发数,和任务超时时间。并且按照队列依次调度。
101101

@@ -110,13 +110,13 @@ type VideoCutTask struct {
110110
```
111111

112112
#### 实现视频裁剪任务执行器
113-
实现一个视频裁剪任务的执行器,执行器实际上就是调用视频裁剪微服务的 API 接口。执行器的实现参考[video_cut_actuator.go](https://github.com/memory-overflow/light-task-scheduler/blob/dev/demo-video-cut/example/videocut_example/video_cut/video_cut_actuator.go), 这里对任务结果只是输出到 stdout 展示,不做后续更多处理了。
113+
实现一个视频裁剪任务的执行器,执行器实际上就是调用视频裁剪微服务的 API 接口。执行器的实现参考[video_cut_actuator.go](https://github.com/memory-overflow/light-task-scheduler/blob/main/example/videocut_example/video_cut/video_cut_actuator.go), 这里对任务结果只是输出到 stdout 展示,不做后续更多处理了。
114114

115115
#### 实现视频裁剪任务容器
116116
这里,我们简单的直接使用队列来作为任务容器,所以可以直接用框架预置的 queueContainer 作为任务容器,无需单独实现。
117117

118118
#### 实现调度
119-
参考代码[main.go](https://github.com/memory-overflow/light-task-scheduler/blob/dev/demo-video-cut/example/videocut_example/main.go)`go run main.go xxx.mp4` 可以执行 demo(需要安装 ffmpeg 命令)。
119+
参考代码[main.go](https://github.com/memory-overflow/light-task-scheduler/blob/main/example/videocut_example/main.go)`go run main.go xxx.mp4` 可以执行 demo(需要安装 ffmpeg 命令)。
120120

121121
```go
122122
func main() {
@@ -166,9 +166,4 @@ func main() {
166166
return
167167
}
168168
}
169-
<<<<<<< HEAD
170169
```
171-
=======
172-
173-
```
174-
>>>>>>> 7a438e32d39d825a30aa89e269399dbb9922cc1f

0 commit comments

Comments
 (0)