This repository has been archived by the owner on Oct 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 51
Fix: Upgrading to R Batch SDK to 2018-12-01.8.0 #354
Merged
Merged
Changes from 6 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
62f4b9c
Added resource files
brnleehng 8c07b27
Added resource files
brnleehng 0d15018
Merge branch 'fix/v3.7-support' of github.com:Azure/doAzureParallel i…
brnleehng 8e50253
Removed comments
brnleehng 55390e9
Fixed resource files documentation
brnleehng 4280f0e
Added check on job state
brnleehng 3a298f1
Fixed jobState
brnleehng File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -472,19 +472,14 @@ waitForTasksToComplete <- | |
|
||
flush.console() | ||
|
||
validationFlag <- | ||
(taskCounts$validationStatus == "Validated" && | ||
totalTasks <= 200000) || | ||
totalTasks > 200000 | ||
|
||
if (taskCounts$failed > 0 && | ||
errorHandling == "stop" && | ||
validationFlag) { | ||
errorHandling == "stop") { | ||
cat("\n") | ||
|
||
select <- "id, executionInfo" | ||
filter <- "executionInfo/result eq 'failure'" | ||
failedTasks <- | ||
batchClient$taskOperations$list(jobId, select = select) | ||
batchClient$taskOperations$list(jobId, select = select, filter = filter) | ||
|
||
tasksFailureWarningLabel <- | ||
sprintf( | ||
|
@@ -498,14 +493,9 @@ waitForTasksToComplete <- | |
) | ||
|
||
for (i in 1:length(failedTasks$value)) { | ||
if (!is.null(failedTasks$value[[i]]$executionInfo$result) && | ||
grepl(failedTasks$value[[i]]$executionInfo$result, | ||
"failure", | ||
ignore.case = TRUE)) { | ||
tasksFailureWarningLabel <- | ||
paste0(tasksFailureWarningLabel, | ||
sprintf("%s\n", failedTasks$value[[i]]$id)) | ||
} | ||
} | ||
|
||
warning(sprintf(tasksFailureWarningLabel, | ||
|
@@ -533,9 +523,10 @@ waitForTasksToComplete <- | |
jobId) | ||
} | ||
|
||
if (taskCounts$completed >= totalTasks && | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Counting service notoriously runs into problems. Might need to change to doing smart list calls in the future. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've added job state in the check |
||
(taskCounts$validationStatus == "Validated" || | ||
totalTasks >= 200000)) { | ||
jobInfo <- getJob(jobId, verbose = FALSE) | ||
if (taskCounts$completed >= totalTasks || | ||
jobInfo$state == "completed" || | ||
jobInfo$state == "terminating") { | ||
cat("\n") | ||
break | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be reversed if null set to list else append to existing list?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will fix this.