Comments (2)
Implemented. Example,
> library("future.batchtools")
> plan(batchtools_torque, resources = list(vmem = "200mb"))
> f <- future({ system("zcat large-file.txt.gz | sort -u") })
> print(f)
BatchtoolsFuture:
Label: 'batchtools'
Expression:
{
system("zcat large-file.txt.gz | sort -u")
}
Lazy evaluation: FALSE
Asynchronous evaluation: TRUE
Local evaluation: TRUE
Environment: <environment: R_GlobalEnv>
Globals: <none>
Packages: <none>
L'Ecuyer-CMRG RNG seed: <none>
Resolved: FALSE
Value: <not collected>
Early signalling: FALSE
Owner process: 9fd2af8e-505b-a1e9-db42-9cc3831b890b
Class: 'BatchtoolsFuture', 'Future', 'environment'
batchtools cluster functions: 'TORQUE'
batchtools status: 'defined', 'queued', 'submitted', 'system'
batchtools Registry:
Job Registry
Name : TORQUE
File dir: /cbc/henrik/repositories/future.batchtools/.make/.future/20170718_233629-rRQ4dI/batchtools_336703133
Work dir: /cbc/henrik/repositories/future.batchtools/.make
Jobs : 1
Seed : 1021282606
> v <- value(f)
Error: BatchtoolsExpiration: Future ('batchtools') expired (registry path /cbc/henrik/repositories/future.batchtools/.make/.future/20170718_233629-rRQ4dI/batchtools_336703133).. The last few lines of the logged output:
### [bt 2017-07-18 23:36:43]: Starting calculation of 1 jobs
### [bt 2017-07-18 23:36:43]: Setting working directory to '/cbc/henrik/repositories/future.batchtools/.make'
Loading required package: methods
### [bt 2017-07-18 23:36:43]: Memory measurement disabled
### [bt 2017-07-18 23:36:43]: Starting job [batchtools job.id=1]
=>> PBS: job killed: vmem 284557312 exceeded limit 209715200
In addition: Warning message:
In waitForJobs(ids = jobid, timeout = timeout, sleep = delta, stop.on.error = FALSE, :
Some jobs disappeared from the system
>
from future.batchtools.
A simple "expired" example without a scheduler:
> library("future.batchtools")
> plan(batchtools_local)
> x %<-% { cat("hello\n"); quit(save = "no") }
> x
Error: BatchtoolsExpiration: Future ('batchtools') expired (registry path /cbc/henrik/repositories/future.batchtools/.make/.future/20170718_234726-jbB3s0/batchtools_1168066799).. The last few lines of the logged output:
### [bt 2017-07-18 23:49:26]: Starting calculation of 1 jobs
### [bt 2017-07-18 23:49:26]: Setting working directory to '/cbc/henrik/repositories/future.batchtools/.make'
Loading required package: methods
### [bt 2017-07-18 23:49:26]: Memory measurement disabled
### [bt 2017-07-18 23:49:26]: Starting job [batchtools job.id=1]
hello
In addition: Warning message:
In waitForJobs(ids = jobid, timeout = timeout, sleep = delta, stop.on.error = FALSE, :
Some jobs disappeared from the system
from future.batchtools.
Related Issues (20)
- huge results file with 'conditions' - performance bottleneck HOT 4
- use batchtools directly for scheduling
- Eqw on SGE cluster while R code finishes without error
- Simple chunking with nested parallelism HOT 1
- Slurm readLog() Error - Option to change fs.latency & scheduler.latency from batchtools_slurm or future::tweak HOT 10
- Proposed bugfix for batchtools reveals bug in future.batchtools? HOT 4
- Problem forwarding batchtools resources to individual futures HOT 4
- problem with running example parallel futures using batchtools_lsf
- Add batchtools template for SGE
- batchtools templates: `resources[["asis"]]` for as-is declarations HOT 1
- print() for BatchtoolsFuture should report on the template file used HOT 1
- Compatibility with promises package HOT 2
- TESTS: Error: identical(Sys.getenv(), oenvs0) is not TRUE on MS Windows CRAN HOT 1
- run(), resolved()[?], and result(): the RNG state is updated - from where? HOT 3
- Add support for plan(batchtools_multicore, workers = I(1))
- All batchtools_nnn() functions should return the future invisibly
- Template tools: add option to ShellCheck rendered template
- Template tools: export functions to find and render template
- PERFORMANCE: status() to memoize "finalized" state? HOT 2
- Error: Log file for job with id 1 not available HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from future.batchtools.