(operate, scope string, resourceID uint)
| 118 | } |
| 119 | |
| 120 | func CheckResourceTaskIsExecuting(operate, scope string, resourceID uint) bool { |
| 121 | taskRepo := repo.NewITaskRepo() |
| 122 | task, _ := taskRepo.GetFirst( |
| 123 | taskRepo.WithByStatus(constant.StatusExecuting), |
| 124 | taskRepo.WithResourceID(resourceID), |
| 125 | taskRepo.WithOperate(operate), |
| 126 | repo.WithByType(scope)) |
| 127 | return task.ID != "" |
| 128 | } |
| 129 | |
| 130 | func CheckScopeTaskIsExecuting(scope string, resourceID uint) error { |
| 131 | taskRepo := repo.NewITaskRepo() |
nothing calls this directly
no test coverage detected