Refactored CronWorkflow message.

- Moved Parameters to it's own field
- Using WorkflowTemplate directly, instead of nesting it inside of
WorkflowExecution.
- Updated related code to use new structure.
This commit is contained in:
Aleksandr Melnikov
2020-03-30 11:59:13 -07:00
parent 9045b1a3eb
commit 59cbf7d15e
6 changed files with 133 additions and 122 deletions

View File

@@ -36,19 +36,20 @@ type Metric struct {
}
type CronWorkflow struct {
ID uint64
CreatedAt time.Time `db:"created_at"`
UID string
Name string
GenerateName string
Schedule string
Timezone string
Suspend bool
ConcurrencyPolicy string
StartingDeadlineSeconds *int64
SuccessfulJobsHistoryLimit *int32
FailedJobsHistoryLimit *int32
WorkflowExecution *WorkflowExecution
ID uint64
CreatedAt time.Time `db:"created_at"`
UID string
Name string
GenerateName string
Schedule string
Timezone string
Suspend bool
ConcurrencyPolicy string
StartingDeadlineSeconds *int64
SuccessfulJobsHistoryLimit *int32
FailedJobsHistoryLimit *int32
WorkflowExecutionParameters []*WorkflowExecutionParameter
WorkflowTemplate *WorkflowTemplate
}
type WorkflowTemplate struct {