Quartz.net 无法连接到 Postgres 数据库
Quartz.net can't connect to Postgres DB
这是我的配置:
["quartz.jobStore.dataSource"] = "default",
["quartz.jobStore.tablePrefix"] = "QRTZ_",
["quartz.jobStore.driverDelegateType"] = "Quartz.Impl.AdoJobStore.PostgreSQLDelegate, Quartz",
["quartz.dataSource.default.provider"] = "Npgsql",
["quartz.dataSource.default.connectionString"] = @"User ID=ttt;Password=xxx;Host=ttt.postgres;Port=5432;Database=ttt;"
异常:
Could not parse property 'dataSource' into correct data type: No writable property 'DataSource' found
一个多小时以来,我一直在尝试不同的事情,文档并没有真正帮助(前面的示例很薄),我试图挖掘 Quartz.Net 来源,但没有运气: /
添加这个似乎 修复了 它 - 我不是 100% 并且 运行 但我已经取得了进一步的进展......
properties["quartz.scheduler.instanceName"] = "SonatribeScheduler";
properties["quartz.scheduler.instanceId"] = "instance_one";
properties["quartz.threadPool.type"] = "Quartz.Simpl.SimpleThreadPool, Quartz";
properties["quartz.threadPool.threadCount"] = "10";
properties["quartz.jobStore.misfireThreshold"] = "60000";
properties["quartz.jobStore.type"] = "Quartz.Impl.AdoJobStore.JobStoreTX, Quartz";
properties["quartz.jobStore.driverDelegateType"] = "Quartz.Impl.AdoJobStore.StdAdoDelegate, Quartz";
properties["quartz.jobStore.useProperties"] = "false";
properties["quartz.jobStore.dataSource"] = "default";
properties["quartz.jobStore.tablePrefix"] = "QRTZ_";
这是我的配置:
["quartz.jobStore.dataSource"] = "default",
["quartz.jobStore.tablePrefix"] = "QRTZ_",
["quartz.jobStore.driverDelegateType"] = "Quartz.Impl.AdoJobStore.PostgreSQLDelegate, Quartz",
["quartz.dataSource.default.provider"] = "Npgsql",
["quartz.dataSource.default.connectionString"] = @"User ID=ttt;Password=xxx;Host=ttt.postgres;Port=5432;Database=ttt;"
异常:
Could not parse property 'dataSource' into correct data type: No writable property 'DataSource' found
一个多小时以来,我一直在尝试不同的事情,文档并没有真正帮助(前面的示例很薄),我试图挖掘 Quartz.Net 来源,但没有运气: /
添加这个似乎 修复了 它 - 我不是 100% 并且 运行 但我已经取得了进一步的进展......
properties["quartz.scheduler.instanceName"] = "SonatribeScheduler";
properties["quartz.scheduler.instanceId"] = "instance_one";
properties["quartz.threadPool.type"] = "Quartz.Simpl.SimpleThreadPool, Quartz";
properties["quartz.threadPool.threadCount"] = "10";
properties["quartz.jobStore.misfireThreshold"] = "60000";
properties["quartz.jobStore.type"] = "Quartz.Impl.AdoJobStore.JobStoreTX, Quartz";
properties["quartz.jobStore.driverDelegateType"] = "Quartz.Impl.AdoJobStore.StdAdoDelegate, Quartz";
properties["quartz.jobStore.useProperties"] = "false";
properties["quartz.jobStore.dataSource"] = "default";
properties["quartz.jobStore.tablePrefix"] = "QRTZ_";