Modify

Opened 15 years ago

Closed 15 years ago

#16 closed enhancement (fixed)

PBSQuery module enhancement

Reported by: bas Owned by: bas
Priority: major Milestone:
Component: PBSQuery Version: 3.0.1
Keywords: Cc:

Description (last modified by bas)

getnode(s) function now returns a dictionary with values, eg pbsnodes: :

gb-r16n1
 state = job-exclusive
 np = 2
 properties  cores2,fabric1,gigabit,infiniband,mem4gb,parallel,switchF
 ntype = cluster
 jobs = 0/2171604.batch-ng.irc.sara.nl, 1/2171604.batch-ng.irc.sara.nl
 status = arch=x86_64,opsys=linux,uname=Linux ib-r16n1.irc.sara.nl 2.6.29.1-sara1 #1 SMP Mon Apr 6 15:43:08 CEST 2009 x86_64,sessions=32128,nsessions=1,nusers=1,idletime=24505,totmem=8039848kb,availmem=7556400kb,physmem=4039856kb,ncpus=2,loadave=2.32,gres=max_jobs:1+ideal_jobs:1,netload=3403654969,size=71647620kb:71652296kb,state=free,jobs=2171604.batch-ng.irc.sara.nl,rectime=1241791421

This is not useful at all. I will change the structure as follow:

  1. key = value, value ---> key = list([ value, value ]), key value is a list
  2. key = name1=value1 name2=value2---> key = dict( [name1] = value1, [name2] = value2), key value is a dictionary

The programming will be easier:

  1. print !nodestate?arch?
  2. if 'cores2' in !nodeproperties?

Attachments (0)

Change History (2)

comment:1 Changed 15 years ago by bas

  • Component changed from pbs to PBSQuery
  • Description modified (diff)
  • Owner changed from somebody to bas
  • Status changed from new to assigned
  • Type changed from defect to enhancement

comment:2 Changed 15 years ago by bas

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [188]) src/PBSQuery.py:

  • implemented a new datastructure, closes #16
  • default is old data structure
  • function new_data_structure() will activate new behaviour
  • we can now also specifiy 'Resource_List.walltime', just will get all 'Resource_List' parameters

Add Comment

Modify Ticket

Change Properties
Action
as closed The owner will remain bas.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.