Skip to main content

node_format

Format worker node name (name@host.com).

def node_format(
s: str,
name: str,
**extra: dict
) - > str

Format worker node name (name@host.com).

Parameters

NameTypeDescription
sstrThe template string or format specification used to structure the output.
namestrThe full worker node name to be split into shortname and host components.
**extradictAdditional keyword arguments passed to the underlying host formatting logic.

Returns

TypeDescription
strThe formatted node identifier string, typically incorporating the host and shortname.