Gets a list of servers which in the termination process
public static getTerminatingServers ( ) : array | ||
return | array | Returns the list of the servers |
/** * {@inheritdoc} * @see Scalr_System_Cronjob_MultiProcess_DefaultWorker::enqueueWork() */ function enqueueWork($workQueue) { $this->logger->info("Fetching servers to remove..."); $qty = 0; foreach (DBServer::getTerminatingServers() as $row) { $workQueue->put($row['server_id']); $qty++; } $this->logger->info("Found " . $qty . " terminating servers"); }