fix jobconfigparser, fix error in database->mssql, reduce logging for jobrunner
This commit is contained in:
@@ -15,7 +15,7 @@ Public Class JobRunner
|
||||
|
||||
Private _Props As New NameValueCollection From {
|
||||
{"quartz.serializer.type", "binary"},
|
||||
{"quartz.threadPool.threadCount", 1}
|
||||
{"quartz.threadPool.threadCount", 10}
|
||||
}
|
||||
Private _factory As StdSchedulerFactory
|
||||
Private _scheduler As IScheduler
|
||||
@@ -117,11 +117,16 @@ Public Class JobRunner
|
||||
Public Function Execute(context As IJobExecutionContext) As Task Implements Quartz.IJob.Execute
|
||||
Dim oJobData = context.MergedJobDataMap
|
||||
Dim oLogConfig As LogConfig = oJobData.Item("LogConfig")
|
||||
Dim oArgs As Dictionary(Of String, String) = oJobData.Item("Args")
|
||||
Dim oArg1 As String = oArgs.Item("Arg1")
|
||||
Dim oLogger = oLogConfig.GetLogger()
|
||||
|
||||
oLogger.Info("Running Test Job With Arg1: {0}", oArg1)
|
||||
Dim oArgs As Dictionary(Of String, String) = oJobData.Item("Args")
|
||||
|
||||
If oArgs.ContainsKey("Arg1") Then
|
||||
Dim oArg1 As String = oArgs.Item("Arg1")
|
||||
oLogger.Info("Running Test Job With Arg1: {0}", oArg1)
|
||||
Else
|
||||
oLogger.Warn("Running Test Job With missing Arg1 :/")
|
||||
End If
|
||||
|
||||
Return Task.FromResult(True)
|
||||
End Function
|
||||
|
||||
Reference in New Issue
Block a user