【发布时间】:2016-09-13 11:49:43
【问题描述】:
我有两台服务器,ServerA 和 ServerB。它们共享相同的hangfire 数据库。 我有两个工作,JobA 和 JobB。
在 ServerA 上,我使用:
RecurringJob.AddOrUpdate(
"JobA",
() => new JobA().Execute(),
this._configuration.Schedule, queue: "A");
在 ServerB 上,我使用:
RecurringJob.AddOrUpdate(
"JobB",
() => new JobB().Execute(),
this._configuration.Schedule, queue: "B");
问题是每个作业都在“作业”表中“入队”,它们永远不会被执行。
如果我在“AddOrUpdate”方法中删除队列覆盖,作业将被执行(显然没有配置队列)。
缺少什么?如何使用队列配置配置循环作业?
【问题讨论】:
标签: hangfire