We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6958a99 commit b75b00cCopy full SHA for b75b00c
drivers/api/handler/v2/job.go
@@ -539,7 +539,9 @@ func buildRestartPolicy(RestartAttempts int) (*nomadApi.ReschedulePolicy, *nomad
539
540
func buildDatabaseDestTaskConfigMap(config *models.DestTaskConfig) map[string]interface{} {
541
taskConfigInNomadFormat := make(map[string]interface{})
542
-
+ if config.MysqlDestTaskConfig == nil{
543
+ return taskConfigInNomadFormat
544
+ }
545
addNotRequiredParamToMap(taskConfigInNomadFormat, config.MysqlDestTaskConfig.ParallelWorkers, "ParallelWorkers")
546
addNotRequiredParamToMap(taskConfigInNomadFormat, config.MysqlDestTaskConfig.UseMySQLDependency, "UseMySQLDependency")
547
addNotRequiredParamToMap(taskConfigInNomadFormat, config.MysqlDestTaskConfig.DependencyHistorySize, "DependencyHistorySize")
0 commit comments