Hangfire.Core.Extend icon indicating copy to clipboard operation
Hangfire.Core.Extend copied to clipboard

IServerFilter在异步处理中 OnPerformed方放会被提前执行 无法检测到任务执行完成

Open Corps-Cy opened this issue 3 years ago • 2 comments

我在使用全局IServerFilter过滤器时 当任务执行需要异步等到时 OnPerformed方放会被提前执行到

Corps-Cy avatar Feb 07 '22 06:02 Corps-Cy

啥意思,你的异步任务没执行完就执行OnPerformed?

yuzd avatar Feb 07 '22 08:02 yuzd

是的  我验证后 在做同步操作时 能够正常执行OnPerformed   如果有await异步操作时  会直接进入OnPerformed方法

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年2月7日(星期一) 下午4:06 收件人: @.>; 抄送: "﹏ℳ๓₯㎕ @.>; @.>; 主题: Re: [yuzd/Hangfire.Core.Extend] IServerFilter在异步处理中 OnPerformed方放会被提前执行 无法检测到任务执行完成 (Issue #2)

啥意思,你的异步任务没执行完就执行OnPerformed?

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.Message ID: @.***>

Corps-Cy avatar Feb 07 '22 08:02 Corps-Cy