Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Fixed get workers count function #261

Merged
merged 1 commit into from
Apr 30, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion R/doAzureParallel.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ registerDoAzureParallel <- function(cluster) {

workers <- function(data) {
id <- data$poolId
pool <- rAzureBatch::getPool(id)

config <- getConfiguration()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rAzureBatch::getConfiguration?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getConfiguration is in the doAzureParallel package, not in rAzureBatch

batchClient <- config$batchClient

pool <- batchClient$poolOperations$getPool(id)

verboseFlag <- getOption("azureVerbose")
if (!is.null(verboseFlag) && verboseFlag) {
Expand Down