Skip to content

Commit 84b90ef

Browse files
WORKAROUND: Add cancel() for BatchtoolsFuture, until package has moved to the new BatchtoolsFutureBackend
1 parent a16a471 commit 84b90ef

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Package: future.batchtools
2-
Version: 0.12.1-9006
2+
Version: 0.12.1-9007
33
Depends:
44
R (>= 3.2.0),
55
parallelly,
6-
future (>= 1.31.0)
6+
future (>= 1.49.0)
77
Imports:
88
batchtools (>= 0.9.16),
99
utils

NAMESPACE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Generated by roxygen2: do not edit by hand
22

33
S3method(add_finalizer,BatchtoolsFuture)
4+
S3method(cancel,BatchtoolsFuture)
45
S3method(delete,BatchtoolsFuture)
56
S3method(loggedError,BatchtoolsFuture)
67
S3method(loggedOutput,BatchtoolsFuture)
@@ -83,6 +84,7 @@ importFrom(batchtools,submitJobs)
8384
importFrom(batchtools,waitForJobs)
8485
importFrom(future,Future)
8586
importFrom(future,FutureError)
87+
importFrom(future,cancel)
8688
importFrom(future,getExpression)
8789
importFrom(future,getGlobalsAndPackages)
8890
importFrom(future,nbrOfFreeWorkers)

R/BatchtoolsFuture-class.R

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,14 @@ print.BatchtoolsFuture <- function(x, ...) {
204204
}
205205

206206

207+
#' @importFrom future cancel
208+
#' @export
209+
cancel.BatchtoolsFuture <- function(x, interrupt = FALSE, ...) {
210+
## FIXME
211+
NextMethod(interrupt = interrupt)
212+
}
213+
214+
207215
#' @importFrom batchtools getStatus
208216
status <- function(future, ...) {
209217
debug <- getOption("future.debug", FALSE)

man/future.batchtools.options.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)