|
|
|
@ -33,7 +33,7 @@ func (m *model) stepToJob(wf *jw.Workflow, name string) (*jw.Job, error) {
|
|
|
|
|
SetMaxOccurrences(step.MaxOccurrences). |
|
|
|
|
SetMaxAttempts(step.MaxAttempts) |
|
|
|
|
|
|
|
|
|
job.Private = util.CopyKV(step.Config, job.Private) |
|
|
|
|
job.Config = step.Config |
|
|
|
|
job.Workflow = &wf.ID |
|
|
|
|
job.CreatedAt = time.Now() |
|
|
|
|
job.Status = jw.StatusTodo |
|
|
|
@ -179,8 +179,8 @@ func (m *model) nextJob(wf *jw.Workflow, job *jw.Job, stepName string, data map[
|
|
|
|
|
return nil, err |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
nextJob.Config = util.CopyKV(data, nextJob.Config) |
|
|
|
|
nextJob.Public = job.Public |
|
|
|
|
nextJob.Private = util.CopyKV(data, nextJob.Private) |
|
|
|
|
nextJob.ErrorCounter = job.ErrorCounter |
|
|
|
|
nextJob.LastError = job.LastError |
|
|
|
|
|
|
|
|
|