Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
expll opened this issue Aug 25, 2023 · 2 comments
Open

Comments

@expll
Copy link

expll commented Aug 25, 2023

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

@memory-overflow
Copy link
Owner

执行器返回的数据,如果需要处理,需要实现可持久化器,就是实现一个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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants