mirror of
https://github.com/cirruslabs/orchard.git
synced 2026-10-18 13:21:00 +02:00
Worker: better cleanup mechanisms (#139)
* Always Close() the Worker instance * orchard list vms: show assigned worker for each of the VMs * Stop the failed VMs before we schedule new VMs To avoid violating resource constraints. * syncOnDiskVMs: don't ignore running VMs * Worker: show correct remote and local VM counts
This commit is contained in:
@@ -54,10 +54,10 @@ func runDev(cmd *cobra.Command, args []string) error {
|
||||
devController, devWorker, err := CreateDevControllerAndWorker(devDataDirPath,
|
||||
fmt.Sprintf(":%d", netconstants.DefaultControllerPort), resources,
|
||||
nil, nil)
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer devWorker.Close()
|
||||
|
||||
errChan := make(chan error, 2)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user