Skip to content

ASP.NET Core Microsoft DI and how to create job/triggers only if they don't already exist. #969

Answered by lahma
jafin asked this question in General
Discussion options

You must be logged in to vote

Try adding following before AddQuartz:

services.AddSingleton(new QuartzSchedulingOptions
{
    OverWriteExistingData = false,
    IgnoreDuplicates = true
});

Please note that the configuration infrastructure will be tuned a bit in 3.2 it might require some changes then. But I'll try to make sure that how to do this is also documented.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jafin
Comment options

@lahma
Comment options

@jafin
Comment options

Answer selected by jafin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants