flux.resource.list module

class flux.resource.list.ResourceListRPC(*args, **kwargs)

Bases: flux.rpc.RPC

class flux.resource.list.SchedResourceList(resp)

Bases: object

Encapsulate response from sched.resource-status query. The response will contain 3 Rv1 resource sets:

"all" - all resources known to scheduler "down" - resources currently unavailable (drained or down) "allocated" - resources currently allocated to jobs

From these sets, the "up" and "free" resource sets are computed on-demand.

property free
property up