How to mark job as durable in Quartz .net?

删除回忆录丶 提交于 2019-12-12 19:09:50

问题


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:


var job = JobBuilder.Create<TestJob>()
                    .WithIdentity(typeof(TestJob).Name)
                    **.StoreDurably(true)**
                    .Build();


来源:https://stackoverflow.com/questions/33612215/how-to-mark-job-as-durable-in-quartz-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!