Coder Social home page Coder Social logo

Comments (6)

becker33 avatar becker33 commented on August 27, 2024

We can do this with ugly parsing and without being able to account for dynamic changes in allocation length, or we can push on IBM to get the option into LSF/CSM.

from scr.

becker33 avatar becker33 commented on August 27, 2024

Notes for later when we get to implementation:

$ bjobs -l <number> > jobinfo
$ cat jobinfo | grep -A1 "RUNLIMIT"
$ cat jobinfo | grep "Started [[:digit:]]\+ Task(s) on Host(s)"

We can clean up this process and use it similarly to how we get time remaining through MOAB on MOAB/ALPS systems.

from scr.

adammoody avatar adammoody commented on August 27, 2024

Thinking about it more, an API call could will probably take months before it's available. So that users can get by in the meantime, please go ahead and and create something based on the bjobs output. Let's handle cases in which a job may end in seconds, minutes, hours, and days. From that and the current system time, you could compute the seconds-since-epoch time for the job end time, which we could then read into SCR via an environment variable. I know you've been thinking about this, so feel free to go with a different implementation if you prefer.

from scr.

adammoody avatar adammoody commented on August 27, 2024

Some useful info:
bjobs -o "time_left"
https://www.ibm.com/support/knowledgecenter/en/SSWRJV_10.1.0/api_reference/index.html
lsblib --> lsb_readjobinfo
int runTime
int duration

from scr.

adammoody avatar adammoody commented on August 27, 2024

Got this going on the lsf branch

from scr.

adammoody avatar adammoody commented on August 27, 2024

Should be supported with ea7b71d

from scr.

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.