HasPendingOperations checks if there are any pending VM or node operations.
()
| 384 | |
| 385 | // HasPendingOperations checks if there are any pending VM or node operations. |
| 386 | func (s *State) HasPendingOperations() bool { |
| 387 | s.pendingMutex.RLock() |
| 388 | defer s.pendingMutex.RUnlock() |
| 389 | |
| 390 | return len(s.PendingVMOperations) > 0 || len(s.PendingNodeOperations) > 0 |
| 391 | } |
| 392 | |
| 393 | // CanVMPerformActions checks if a VM can perform actions (no pending operations). |
| 394 | // Returns true if the VM can perform actions, false otherwise. |
no outgoing calls
no test coverage detected