light-task-scheduler icon indicating copy to clipboard operation
light-task-scheduler copied to clipboard

请问如何获取执行器函数,执行完成返回的data 如何获取

Open expll opened this issue 2 years ago • 2 comments

请问如何获取执行器函数,执行完成返回的data 如何获取

expll avatar Aug 25 '23 05:08 expll

执行器返回的数据,如果需要处理,需要实现可持久化器,就是实现一个https://github.com/memory-overflow/light-task-scheduler/blob/main/taskdata_persistencer.go。 例子比如,https://github.com/memory-overflow/light-task-scheduler/blob/main/example/videocut_example/video_cut/example_sql_container.go#L387

memory-overflow avatar Aug 31 '23 02:08 memory-overflow

而这里的 data 是你实现的执行器的这个接口返回的。 https://github.com/memory-overflow/light-task-scheduler/blob/main/task_actuator.go#L17

memory-overflow avatar Aug 31 '23 02:08 memory-overflow