Giter Site home page Giter Site logo

Comments (2)

HenrikBengtsson avatar HenrikBengtsson commented on June 3, 2024

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.

HenrikBengtsson avatar HenrikBengtsson commented on June 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.