xxl-job / xxl-job-executor-go

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

执行器完毕后回调时候发生网络中断,这个任务可能一直会卡住 #22

Closed make3782 closed 1 year ago

make3782 commented 3 years ago

https://github.com/xxl-job/xxl-job-executor-go/blob/7106a50993c89dbe228d77052202ac8556928e8e/executor.go#L310

如上,如果在执行完毕回调给注册器通知的时候,发生了网络之类的中断,这次请求没有成功,则后续再执行会报

msg:xxl-rpc remoting (url=http://10.10.57.249:9999/run) response content invalid([{"logId":7515,"logDateTim":1632794520006,"executeResult":{"code":500,"msg":"There are tasks running"},"handleCode":500,"handleMsg":"There are tasks running"}]).

请问是否这里针对执行器可以有重试的方案或者其他优化吗?

rushuinet commented 3 years ago

有网络中断情况,建议手动处理。