Comments (7)
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.
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.
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.
Looking at it now :)
from pyslurm.
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.
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.
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)
- pyslurm throw KeyError 5039 when statistics().get() called HOT 2
- symbol lookup error: undefined symbol: data_init HOT 7
- Installation fails for v22.5.x HOT 2
- Submittion of a batch job will be failed when argument "work_dir" contains a "_" HOT 1
- Unclear that `Jobs.load()` returns a dictionary. HOT 2
- Missing `Job` fields compared to the docs HOT 2
- slurmdbd: Implement Association API
- ValueError: invalid literal for int() with base 10: 'milton.m' HOT 1
- Copy/Paste error in Job class memory property HOT 1
- Cannot seem to get allocated gres info from Node HOT 4
- Node in Nodes collection do not report a MIXED state, only IDLE or ALLOCATED HOT 5
- A job is found with JobFilter if it is running on start_time HOT 6
- question: install on cluster without slurm-devel package and without root access HOT 2
- job mem returns as "None" HOT 3
- error: ‘KILL_JOB_ARRAY’ undeclared HOT 1
- Slurm 23.11 support HOT 3
- pyslurm is installation failed HOT 2
- Particular value of gres is causing cstr to crash HOT 1
- [guidance request] 'gres' : 'gpu' does not have the same behavior as when using bash HOT 2
- Problem in setup.py get_version() - packaging.version object is missing .major and .minor attributes in earlier module versions under Python 3.6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyslurm.