Closed andyfoxcs closed 1 year ago
我今天看下这个问题
jobagent这种类型的job 区别于传统的webjob有点不一样,没有把返回值给到调度中心 这个要改一下,等我消息
我想了下,你这个场景其实不需要用jobagent呀,你只需要用普通的webapi即可
jobagent可能需要一直执行的,不存在有返回值一说了 @andyfoxcs
如果你需要在jobagent执行成功 或者失败 去执行别的 完全可以在jobagent里面自己写一些相对应的逻辑也行的
我先关闭了
我通过HttpJob.Client 向hangfire调度中心发起任务,并在任务中的 Fail中填写了返回异常时回调服务这个路径,但是在实际运行时,JobAgent中已经抛出了异常,但是在Fail中并未接收到一次信息
HttpJob.Client中Fail信息截图:
调度中心任务状态截图:
JobAgent片段代码截图:
调度中心日志截图:
请问如何返回JobAgent的错误给到Client?