always destroy
This commit is contained in:
parent
abd700bf8f
commit
ea221cfe87
|
@ -458,10 +458,8 @@ func (d *Driver) DestroyTask(taskID string, force bool) error {
|
|||
}
|
||||
|
||||
if !handle.pluginClient.Exited() {
|
||||
if handle.IsRunning() {
|
||||
if err := handle.exec.Shutdown("", 0); err != nil {
|
||||
handle.logger.Error("destroying executor failed", "err", err)
|
||||
}
|
||||
if err := handle.exec.Shutdown("", 0); err != nil {
|
||||
handle.logger.Error("destroying executor failed", "err", err)
|
||||
}
|
||||
|
||||
handle.pluginClient.Kill()
|
||||
|
|
|
@ -486,10 +486,8 @@ func (d *Driver) DestroyTask(taskID string, force bool) error {
|
|||
}
|
||||
|
||||
if !handle.pluginClient.Exited() {
|
||||
if handle.IsRunning() {
|
||||
if err := handle.exec.Shutdown("", 0); err != nil {
|
||||
handle.logger.Error("destroying executor failed", "err", err)
|
||||
}
|
||||
if err := handle.exec.Shutdown("", 0); err != nil {
|
||||
handle.logger.Error("destroying executor failed", "err", err)
|
||||
}
|
||||
|
||||
handle.pluginClient.Kill()
|
||||
|
|
|
@ -534,10 +534,8 @@ func (d *Driver) DestroyTask(taskID string, force bool) error {
|
|||
}
|
||||
|
||||
if !handle.pluginClient.Exited() {
|
||||
if handle.IsRunning() {
|
||||
if err := handle.exec.Shutdown("", 0); err != nil {
|
||||
handle.logger.Error("destroying executor failed", "err", err)
|
||||
}
|
||||
if err := handle.exec.Shutdown("", 0); err != nil {
|
||||
handle.logger.Error("destroying executor failed", "err", err)
|
||||
}
|
||||
|
||||
handle.pluginClient.Kill()
|
||||
|
|
|
@ -460,10 +460,8 @@ func (d *Driver) DestroyTask(taskID string, force bool) error {
|
|||
}
|
||||
|
||||
if !handle.pluginClient.Exited() {
|
||||
if handle.IsRunning() {
|
||||
if err := handle.exec.Shutdown("", 0); err != nil {
|
||||
handle.logger.Error("destroying executor failed", "err", err)
|
||||
}
|
||||
if err := handle.exec.Shutdown("", 0); err != nil {
|
||||
handle.logger.Error("destroying executor failed", "err", err)
|
||||
}
|
||||
|
||||
handle.pluginClient.Kill()
|
||||
|
|
|
@ -810,10 +810,8 @@ func (d *Driver) DestroyTask(taskID string, force bool) error {
|
|||
}
|
||||
|
||||
if !handle.pluginClient.Exited() {
|
||||
if handle.IsRunning() {
|
||||
if err := handle.exec.Shutdown("", 0); err != nil {
|
||||
handle.logger.Error("destroying executor failed", "err", err)
|
||||
}
|
||||
if err := handle.exec.Shutdown("", 0); err != nil {
|
||||
handle.logger.Error("destroying executor failed", "err", err)
|
||||
}
|
||||
|
||||
handle.pluginClient.Kill()
|
||||
|
|
Loading…
Reference in New Issue