How to mark job as durable in Quartz .net?

2019-07-08 19:17发布

How to mark my IJob implementation as durable? I couldn't find any reference to this in quartz .net documentation and I do not use any xml job configurations. Shouldn't there be some kind of attribute like PersistJobDataAfterExecution, DisallowConcurrentExecution or boolean property in IJob interface?

1条回答
萌系小妹纸
2楼-- · 2019-07-08 19:36
var job = JobBuilder.Create<TestJob>()
                    .WithIdentity(typeof(TestJob).Name)
                    **.StoreDurably(true)**
                    .Build();
查看更多
登录 后发表回答