mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-09 07:30:03 +08:00
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:
27
pkg/types.go
27
pkg/types.go
@@ -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 {
|
||||
|
Reference in New Issue
Block a user