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

Commit a64b9aa

Browse files
committed
add job state in getJob
1 parent e40d99f commit a64b9aa

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

R/jobUtilities.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,13 @@ getJob <- function(jobId, verbose = TRUE) {
6969
),
7070
fill = TRUE
7171
)
72+
cat(sprintf("\njob state: %s", job$state), fill = TRUE)
7273
}
7374

7475
jobObj <- list(jobId = job$id,
7576
metadata = metadata,
76-
tasks = tasks)
77+
tasks = tasks,
78+
jobState = job$state)
7779

7880
return(jobObj)
7981
}

tests/testthat/test-long-running-job.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,5 @@ test_that("Long Running Job Test", {
5353
list(2, 2, 2, 2))
5454

5555
# delete the job
56-
rAzureBatch::deleteJob(jobId)
56+
deleteJob(jobId)
5757
})

0 commit comments

Comments
 (0)