Coder Social home page Coder Social logo

Problem with array job id about fyrd HOT 6 CLOSED

mikedacre avatar mikedacre commented on May 26, 2024
Problem with array job id

from fyrd.

Comments (6)

MikeDacre avatar MikeDacre commented on May 26, 2024

Thanks for the report @smhr.

Would it work to strip all non-integer characters from the job ID? Is your queue able to find jobs with the format 136374, or do they have to be the complete '136374[]'?

The other alternative is that I could change the code to not require integer job IDs, there actually isn't any real reason to enforce that anymore.

from fyrd.

smhr avatar smhr commented on May 26, 2024

Would it work to strip all non-integer characters from the job ID? Is your queue able to find jobs with the format 136374, or do they have to be the complete '136374[]'?

Yes, to temporarily get around this problem, I add this line to queue.py before converting it to integer:
job_id = re.sub('[^A-Za-z0-9.]+', '', job_id)

In our queue if I run qstat it gives: 136374[], but if I use qstat -t it gives 136374[1], 136374[2], etc.

from fyrd.

MikeDacre avatar MikeDacre commented on May 26, 2024

OK, thanks @smhr , after considering I think I will actually change job ID handling to use strings instead of integers. I originally did that to try and enforce similar job IDs between torque and slurm, but there actually isn't a good reason to do that anymore, and it neglects the job array use case.

I have a question though: when submitting jobs from fyrd, would you want to use job arrays for anything, right now I don't think that is possible.

from fyrd.

smhr avatar smhr commented on May 26, 2024

I have a question though: when submitting jobs from fyrd, would you want to use job arrays for anything, right now I don't think that is possible.

I have not test array job with fyrd. I found this issue because someone uses array job in our torque queue system.

from fyrd.

MikeDacre avatar MikeDacre commented on May 26, 2024

OK, thanks, I will fix this in the next couple of days, the next beta release will work properly.

from fyrd.

MikeDacre avatar MikeDacre commented on May 26, 2024

I am doing more work to fully integrate array job IDs, but for now the latest commit to master means that they at least do not break queue parsing anymore. Thanks for the bug report @smhr

from fyrd.

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.