在我的Hangfire后台作业的最终尝试结束之前,我需要执行一些数据库操作(我需要删除与作业相关的数据库记录)
我当前的作业使用以下属性设置: [AutomaticRetry(Attempts = 5, OnAttemptsExceeded = AttemptsExceededAction.Delete)]
[AutomaticRetry(Attempts = 5, OnAttemptsExceeded = AttemptsExceededAction.Delete)]
考虑到这一点,我需要确定当前的尝试次数是什么,但我很难通过Google搜索或Hangfire.io文档找到这方面的任何文档.
asp.net-mvc scheduled-tasks hangfire
asp.net-mvc ×1
hangfire ×1
scheduled-tasks ×1