Giter VIP home page Giter VIP logo

Comments (2)

grondo avatar grondo commented on June 22, 2024

As a side note, a similar treatment for R might be nice once we support resource-update events, so that flux job info JOBID R returns any updated expiration at the time of the request.

from flux-core.

chu11 avatar chu11 commented on June 22, 2024

So pondering this a bit more and I see multiple approaches:

  • get the redacted jobspec via job-list

    • Pro: it's already in there
    • Con: we don't have guest access check in there
    • Con: minor eventual consistency raciness
  • get the redacted jobspec via job-info

    • Pro: guest access checks already there
    • Pro: we already have to read the eventlog for guest access, so no extra KVS reads
    • Con: gotta build the jobspec up, putting cycles on job-info in broker
  • get the redacted jobspec via job-manager

    • Pro: it's already there
    • Con: we gotta support some user facing service thingie to get it from here along w/ access checks
  • create library util functions to do this for job-info / tools so we atleast have it in one place

    • Pro: no extra load on broker
    • Con: more work

No obvious winner, pros and cons each direction. Am leaning to just create a helper function that flux job info and flux update and anything in the future can all use, since it doesn't appear we need widespread use at the moment.

Edit: Thinking about this even more I'm thinking of being even lazier. Perhaps until there's a need, we should just implement something into flux job info just for flux job info. A utility function in the future can be created when needed. flux job info has the C implementation and flux update has the Python implementation for the time being.

from flux-core.

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.