AVAIL
The avail function is provided as conversion aid for scheduler written for early versions of PBS. The function uses pbs_rescquery.
answer = pbs.avail(c, resource)
In
c::
Connection id
resource::
Rescource is a single 'node=specification' specification, eg: "nodes=1:infiband"
Out
answer::
There are three possible return values:
- yes
- the nodes to satisify the specification are currently available
- no
- The nodes are currently unavailable
- never
- The specification could never be satified
Example
#!/usr/bin/env python c = pbs.pbs_connect(pbs.pbs_default()) answer = pbs.avail(c, "nodes=1") print answer
Last modified 17 years ago
Last modified on 09/13/06 14:24:06