Exception thrown: 'Quartz.JobPersistenceException' in System.Private.CoreLib.dll #2019
Replies: 3 comments
-
Im using .net7 and quartz3.2 this is my code 1 is schedulerservice namespace WorkerService3
Console.WriteLine("booooooo");
} 2 is Myjob using MimeKit; namespace JobSchedulerDemo; public class MyJob: IJob
} |
Beta Was this translation helpful? Give feedback.
-
I was thibking if I needed to match every parameter of databse in MYjob but not sure |
Beta Was this translation helpful? Give feedback.
-
my program class
{
//ervices.AddSingleton<ISchedulerFactory, services.AddTransient(); > ();
} |
Beta Was this translation helpful? Give feedback.
-
public MySchedulerBackgroundService(IJobFactory jobFactory, MyJob myJob)
{
this.jobFactory = jobFactory;
var props = new NameValueCollection
{
{ "quartz.serializer.type", "json" },
{ "quartz.jobStore.type", "Quartz.Impl.AdoJobStore.JobStoreTX, Quartz" },
{ "quartz.jobStore.useProperties", "true" },
// { "quartz.jobStore.driverDelegateType", "Quartz.Impl.AdoJobStore.MySQLDelegate, Quartz" },
{ "quartz.jobStore.dataSource", "myDS" },
{ "quartz.jobStore.tablePrefix", "QRTZ_"},
{ "quartz.dataSource.myDS.connectionString", "Server=localhost;Port=3306;database=quartz1;Uid=root;pwd=12345678;CharSet=utf8;" },
{ "quartz.dataSource.myDS.provider", "MySqlConnector" }
this my code.
Beta Was this translation helpful? Give feedback.
All reactions