mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-29 17:58:36 +08:00
fix: delete servers that has been removed results in delete_failed
status
This commit is contained in:
@@ -465,6 +465,10 @@ func (task *STask) ScheduleRun(data jsonutils.JSONObject) {
|
||||
runTask(task.Id, data)
|
||||
}
|
||||
|
||||
func (self *STask) IsSubtask() bool {
|
||||
return self.HasParentTask()
|
||||
}
|
||||
|
||||
func (self *STask) HasParentTask() bool {
|
||||
parentTaskId, _ := self.Params.GetString(PARENT_TASK_ID_KEY)
|
||||
if len(parentTaskId) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user