Plexora

node_resources

List the files a node is serving right now, as it describes itself.

Generated from Plexora 0.0.55View source
from plexora import node_resources
node_resources(name)

Contacts the node's handshake endpoint, so this is a live answer -- what the node is serving at this moment -- rather than anything cached here.

Parameters

namestrrequired

The registered node's name, as given to plexora.register_node.

Returns

list[dict]

One entry per resource the node is serving, each with at least id, kind ("image", "segmentation" or "table"), generation, loaded, state, error and fingerprint. A segmentation entry also carries mask_mode, warning and progress; an image entry also carries image_type and image_type_reason.

Raises

KeyError

If no node named name is registered.

Examples

import plexora

for resource in plexora.node_resources("hpc"):
    print(resource["kind"], resource["id"], resource["state"])

On this page