@@ -14,21 +14,20 @@ import (
14
14
)
15
15
16
16
type StackupWorkflow struct {
17
- Name string `yaml:"name"`
18
- Description string `yaml:"description"`
19
- Version string `yaml:"version"`
20
- Settings * WorkflowSettings `yaml:"settings"`
21
- Init string `yaml:"init"`
22
- Preconditions []* Precondition `yaml:"preconditions"`
23
- Tasks []* Task `yaml:"tasks"`
24
- TaskList * lla.List
25
- Startup []TaskReference `yaml:"startup"`
26
- Shutdown []TaskReference `yaml:"shutdown"`
27
- Servers []TaskReference `yaml:"servers"`
28
- Scheduler []ScheduledTask `yaml:"scheduler"`
29
- Includes []* WorkflowInclude `yaml:"includes"`
30
- State * StackupWorkflowState
31
- RemoteTemplateIndex * RemoteTemplateIndex
17
+ Name string `yaml:"name"`
18
+ Description string `yaml:"description"`
19
+ Version string `yaml:"version"`
20
+ Settings * WorkflowSettings `yaml:"settings"`
21
+ Init string `yaml:"init"`
22
+ Preconditions []* Precondition `yaml:"preconditions"`
23
+ Tasks []* Task `yaml:"tasks"`
24
+ TaskList * lla.List
25
+ Startup []TaskReference `yaml:"startup"`
26
+ Shutdown []TaskReference `yaml:"shutdown"`
27
+ Servers []TaskReference `yaml:"servers"`
28
+ Scheduler []ScheduledTask `yaml:"scheduler"`
29
+ Includes []* WorkflowInclude `yaml:"includes"`
30
+ State * StackupWorkflowState
32
31
}
33
32
34
33
type WorkflowInclude struct {
@@ -72,15 +71,6 @@ type Precondition struct {
72
71
MaxRetries * int `yaml:"max-retries,omitempty"`
73
72
}
74
73
75
- type TaskReference struct {
76
- Task string `yaml:"task"`
77
- }
78
-
79
- type ScheduledTask struct {
80
- Task string `yaml:"task"`
81
- Cron string `yaml:"cron"`
82
- }
83
-
84
74
func GetState () * StackupWorkflowState {
85
75
return App .Workflow .State
86
76
}
@@ -367,8 +357,6 @@ func (workflow *StackupWorkflow) RemoveTasks(uuidsToRemove []string) {
367
357
}
368
358
369
359
func (workflow * StackupWorkflow ) ProcessIncludes () {
370
- workflow .RemoteTemplateIndex = & RemoteTemplateIndex {Loaded : false }
371
-
372
360
// set default value for verify checksum to true
373
361
for _ , wi := range workflow .Includes {
374
362
if wi .VerifyChecksum == nil {
@@ -470,19 +458,3 @@ func (workflow *StackupWorkflow) ProcessInclude(include *WorkflowInclude) bool {
470
458
471
459
return true
472
460
}
473
-
474
- func (tr * TaskReference ) TaskId () string {
475
- if App .JsEngine .IsEvaluatableScriptString (tr .Task ) {
476
- return App .JsEngine .Evaluate (tr .Task ).(string )
477
- }
478
-
479
- return tr .Task
480
- }
481
-
482
- func (st * ScheduledTask ) TaskId () string {
483
- if App .JsEngine .IsEvaluatableScriptString (st .Task ) {
484
- return App .JsEngine .Evaluate (st .Task ).(string )
485
- }
486
-
487
- return st .Task
488
- }
0 commit comments