xxl-job / xxl-job-executor-go

xxl-job 执行器(golang 客户端)
MIT License
424 stars 104 forks source link

使用xxljob 代码逻辑自定义任务最终的失败和成功状态 #67

Closed org-lib closed 9 months ago

org-lib commented 9 months ago

代码逻辑无法正常执行的时候,返回的只是string 错误信息,但是任务最终状态还是完成。这个不合理的,如何代码控制让xxljob返回失败的状态,不能panic 因为别的定时任务要执行,

rushuinet commented 9 months ago

任务的panic只会影响当前使用,不会影响别的定时任务的