mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-11-30 02:38:17 +08:00
[REV] optimize task delete strategy
This commit is contained in:
parent
0efd81284e
commit
492ae3d53f
@ -120,7 +120,7 @@ func (t Task) CanBeDelete() bool {
|
||||
return true
|
||||
}
|
||||
for _, v := range t.Status {
|
||||
if v.Status == "exec" {
|
||||
if v.Status != "create" {
|
||||
return false
|
||||
}
|
||||
}
|
||||
@ -205,7 +205,7 @@ func (t TaskGroup) CanBeDelete() bool {
|
||||
return true
|
||||
}
|
||||
for _, v := range t.Status.TaskStatus {
|
||||
if v.Status == "exec" {
|
||||
if v.Status != "create" {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user