@@ -98,9 +98,16 @@ func getScripts(pageSize int, search string, name string) []types.Script {
9898}
9999
100100func createRun (versionID , fleetID uuid.UUID , watch bool , outputNodes []string , outputsDir string , useStaticIPs bool ) {
101+ parallelism := 0
102+ if executionMachines .Default != nil {
103+ parallelism = * executionMachines .Default
104+ } else if executionMachines .SelfHosted != nil {
105+ parallelism = * executionMachines .SelfHosted
106+ }
107+
101108 run := types.CreateRun {
102109 VersionID : versionID ,
103- Machines : executionMachines ,
110+ Parallelism : parallelism ,
104111 Fleet : & fleetID ,
105112 UseStaticIPs : useStaticIPs ,
106113 }
@@ -135,12 +142,12 @@ func createRun(versionID, fleetID uuid.UUID, watch bool, outputNodes []string, o
135142 watch = true
136143 }
137144 if watch {
138- WatchRun (createRunResp .ID , outputsDir , nodesToDownload , nil , false , & executionMachines , showParams )
145+ WatchRun (createRunResp .ID , outputsDir , nodesToDownload , nil , false , showParams )
139146 } else {
140147 availableMachines := GetAvailableMachines (fleetName )
141148 fmt .Println ("Run successfully created! ID: " + createRunResp .ID .String ())
142- fmt .Print ("Machines:\n " + FormatMachines (executionMachines , false ))
143- fmt .Print ("\n Available:\n " + FormatMachines (availableMachines , false ))
149+ fmt .Print ("Machines:\n " + FormatMachines (executionMachines , true ))
150+ fmt .Println ("\n Available:\n " + FormatMachines (availableMachines , true ))
144151 }
145152}
146153
@@ -154,7 +161,6 @@ func createNewVersion(version *types.WorkflowVersionDetailed) *types.WorkflowVer
154161 Description : version .Description ,
155162 WorkflowInfo : version .WorkflowInfo ,
156163 Snapshot : false ,
157- MaxMachines : version .MaxMachines ,
158164 }
159165
160166 data , err := json .Marshal (strippedVersion )
0 commit comments