yuzd / Hangfire.HttpJob

httpjob for Hangfire,restful api for Hangfire,job调度与业务分离
https://github.com/yuzd/Hangfire.HttpJob/wiki
MIT License
630 stars 186 forks source link

blazor server模式下。多个任务提交异常 #192

Closed Seanxwy closed 5 months ago

Seanxwy commented 1 year ago

blazor server模式下。多个任务提交异常。提交任务无法正常返回,然后导致后面主线程和await的任务无法执行。在hangfires上可以看到提交的第一个任务是正常的。

yuzd commented 1 year ago

有错误日志吗?

Seanxwy commented 1 year ago

image 我有使用try catch,并没有抛出异常。但是调试的时候走到这里,就中止了

yuzd commented 1 year ago

是result.IsSuccess = false的话 你看一下 result.ErrMessage

Seanxwy commented 1 year ago

不会走到result.isSuccess =false。直接挂了。也没有走到catch

yuzd commented 1 year ago

还会有这种情况 有能再现的demo吗?

Seanxwy commented 1 year ago

更新了?没有尝试,我现在只能放到contorller用httpclient来处理了。回头我可以再试一下。

yuzd commented 5 months ago

blazor不是很熟悉,不确定是不是header头没有带上auth 有可以调试的话应该能很快定位到问题