Search code examples
c#quartz-schedulerquartz.net

How to mark job as durable in Quartz .net?


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?


Solution

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