【问题标题】:How to increase Hangfire timeout in Version 1.6 using MysqlStorage如何使用 MysqlStorage 在 1.6 版中增加 Hangfire 超时
【发布时间】:2018-10-22 15:31:30
【问题描述】:

我在我的 ASP Net Core 项目中使用 Hangfire 并使用 Mysql 作为存储。

我有一个长时间运行的任务,运行时间约为 1 小时。但是hangfire 的默认超时时间是 30 分钟。因此该任务再次运行。

我想使用InvisibilityTimeout,但它已经过时了。有什么建议吗?

我确实尝试过使用JobExpirationCheckInterval,但我不知道它是否正确。

任何指向正确方向的东西都会得到认可。

【问题讨论】:

    标签: mysql asp.net-core hangfire


    【解决方案1】:

    我将 InvisibilityTimeout 和 JobExpirationCheckInterval 设置为 1 天,它似乎有效。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-05-11
      • 2021-10-19
      • 1970-01-01
      • 1970-01-01
      • 2015-03-27
      • 2023-02-06
      • 1970-01-01
      • 2011-01-22
      相关资源
      最近更新 更多