5 | | The ''avail'' function is provided as conversion aid for scheduler written for early versions of PBS. |
6 | | The avail() routine uses pbs_rescquery() and returns a character string answer. connect is the |
7 | | connection returned by pbs_connect(). resc is a single node=specification specification as dis- |
8 | | cussed above. If the nodes to satisify the specification are currently available, the return |
9 | | value is the character string yes . If the nodes are currently unavailable, the return is the |
10 | | character string no . If the specification could never be satified, the return is the string |
11 | | never . An error in the specification returns the character string ? . |
| 5 | The ''avail'' function is provided as conversion aid for scheduler written for early versions of PBS. The function uses [wiki:TorqueUsage/Functions/Pbs_rescquery pbs_rescquery] and returns a string. |
| 6 | {{{ |
| 7 | answer = pbs.avail(c, resource) |
| 8 | }}} |
| 9 | |
| 10 | == In == |
| 11 | |
| 12 | c:: |
| 13 | Connection id |
| 14 | |
| 15 | resource:: |
| 16 | Rescource is a single 'node=specification' specification, eg: ''"nodes=1:infiband"'' |
| 17 | |
| 18 | == Out == |
| 19 | |
| 20 | answer:: |
| 21 | There are three possible return values: |
| 22 | yes:: |
| 23 | the nodes to satisify the specification are currently available |
| 24 | no:: |
| 25 | The nodes are currently unavailable |
| 26 | never:: |
| 27 | The specification could never be satified |