Giter Club home page Giter Club logo

Comments (7)

phantez avatar phantez commented on May 14, 2024

We are lagging a bit behind in term of API support for this new release, will try to have a look at it soon.

from pyslurm.

gingergeeks avatar gingergeeks commented on May 14, 2024

Hi, we have made a quick mod to the 2.5 branch so please do another pull. As phantez stated we are trying to catch up with API changes and correct our code.

from pyslurm.

laparn avatar laparn commented on May 14, 2024

It still does not work :

arnaud@D3550:~/src/pyslurm/examples$ python jobs_list.py
Traceback (most recent call last):
File "jobs_list.py", line 43, in
jobs = a.get()
File "pyslurm.pyx", line 1581, in pyslurm.pyslurm.job.get (pyslurm/pyslurm.c:20212)
File "pyslurm.pyx", line 1677, in pyslurm.pyslurm.job.__get (pyslurm/pyslurm.c:21214)
File "pyslurm.pyx", line 4146, in pyslurm.pyslurm.get_conn_type_string (pyslurm/pyslurm.c:45448)
TypeError: an integer is required

Thanks for the try. Keep me posted.

from pyslurm.

gingergeeks avatar gingergeeks commented on May 14, 2024

Looking at it now :)

from pyslurm.

gingergeeks avatar gingergeeks commented on May 14, 2024

Pushed a small change, I tested the previous code on an emulated BG/Q so I built Slurm-2.5.0 for a standard cluster, this is where the connection type is NULL where the Python equivalent is None but the decode routine was expecting an integer. We will have to also modify any other routines where this may also be the case.

Please let me know if this works for you.

from pyslurm.

laparn avatar laparn commented on May 14, 2024

This time, it seems that it works :
JobID 128 :
account : None
alloc_node : D3550
alloc_sid : 14351
altered : None
assoc_id : 0
batch_flag : 0
batch_host : D3550
batch_script : None
block_id : None
blrts_image : None
boards_per_node : 0
cnode_cnt : None
command : wait-arg.sh
comment : None
conn_type : (None, 'None')
contiguous : False
cores_per_socket : 65534
cpus_per_task : 1
dependency : None
derived_ec : 0
eligible_time : Thu Dec 27 10:12:14 2012
end_time : Fri Dec 27 10:12:14 2013
exc_nodes : []
exit_code : 0
features : []
gres : []
group_id : 1001
ionodes : None
job_state : (1, 'RUNNING')
licenses : {}
linux_image : None
max_cpus : 0
max_nodes : 0
mloader_image : None
name : wait-arg.sh
network : None
nice : 10000
nodes : None
ntasks_per_core : 65535
ntasks_per_node : 0
ntasks_per_socket : 65535
num_cpus : 1
num_nodes : 1
partition : debug
pn_min_cpus : 1
pn_min_memory : 0
pn_min_tmp_disk : 0
pre_sus_time : 0
preempt_time : 0
priority : 4294901727
qos : None
ramdisk_image : None
reboot : None
req_nodes : []
req_switch : 0
requeue : True
resize_time : N/A
restart_cnt : 0
resv_id : None
resv_name : None
rotate : False
shared : 0
show_flags : 0
sockets_per_board : 0
sockets_per_node : 65534
start_time : Thu Dec 27 10:12:14 2012
state_desc : None
state_reason : (0, 'None')
submit_time : Thu Dec 27 10:12:14 2012
suspend_time : 0
threads_per_core : 65534
time_limit : Infinite
time_min : 0
user_id : 1001
wait4switch : 0
wckey : None

work_dir : /home/arnaud/src/slurmjob

Number of Jobs - 1

[]
Number of pending jobs - 0
Number of running jobs - 0

JobIDs in Running state - []

I am just a little surprised by the statements at the end : there is a running job, but no list of jobIDs. Looking at the code of the example, we have :
running = a.find('job_state', pyslurm.JOB_RUNNING)

So, I suppose that in find, there is something wrong, or the representation (here job_state is (1, 'RUNNING')) has changed. Do you want me to open a new bug on the subject ? You can close this one.

Thanks for the help,

Regards,

Arnaud

from pyslurm.

gingergeeks avatar gingergeeks commented on May 14, 2024

Yes, please open a new issue and we will take a look as soon as possible. closing this one and thank you for your patience.

from pyslurm.

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.