Giter Site home page Giter Site logo

Comments (5)

HenrikBengtsson avatar HenrikBengtsson commented on June 18, 2024

The format of that path is:
.future/<timestamp>_{{R-SESSION-ID}}/batchtools_{{FUTURE_ID}}/logs/job{{BATCHTOOLS-JOB-ID}}.log

I agree that having ../batchtools_{{FUTURE_ID}}_{{BATCHTOOLS-JOB-ID}}/... instead of ../batchtools_{{FUTURE_ID}}/... could be handy. Unfortunately, I'm not sure this can be done, because that batchtools_{{FUTURE_ID}} part must be set up before submitting a batchtools job (because that is actually the batchtools registry name). Only later is the {{BATCHTOOLS-JOB-ID}} created when the job is created/submitted.

When you say you "want to peek", do you mean from outside of R while the job is running? That is, it would not be helpful to provide accessor functions to the BatchtoolsFuture class?

from future.batchtools.

kendonB avatar kendonB commented on June 18, 2024

I have been looking from outside of R while the job is running, yes. However, if the best way to achieve the peeking would be from within a second R session, then, of course, that would also work great.

from future.batchtools.

HenrikBengtsson avatar HenrikBengtsson commented on June 18, 2024

I do that at times as well. Also, when there's an error, I find myself navigating these temporary future+batchtools repositories by hand from within R (the default behavior of future.batchtools is to not clean them up if there's an error).

Having an R API to peek into/browse around in an existing (and possibly even a live/hot) batchtools job registry would be neat. If possible, it's not hard to imagine of pulling out an overview of current jobs, e.g. classical stdout, fancy color-annotated stdout, or even a GUI/Shiny dashboard. I think that such a feature request for a basic querying API is better address to the batchtools project itself.

from future.batchtools.

kendonB avatar kendonB commented on June 18, 2024

Ref: mllg/batchtools#157

from future.batchtools.

HenrikBengtsson avatar HenrikBengtsson commented on June 18, 2024

Note to self: good news from mllg/batchtools#157 (comment):

To clarify this feature request: Is it possible (and safe) to set up a pointer to a batchtools registry from a separate R session (by only knowing its path on the file system) and use the find*() functions to query it's status?

Yes, it should be possible if you use loadRegistry("<path>", writeable = FALSE). If you encounter problems while only monitoring, it is a bug in batchtools.

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.