Skip to main content

anon_nodename

Return the nodename for this process (not a worker).

This is used for e.g. the origin task message field.

def anon_nodename(
hostname: str | None = None,
prefix: string = 'gen'
) - > string

Return the nodename for this process (not a worker). This is used for e.g. the origin task message field.

Parameters

NameTypeDescription
hostname`strNone` = None
prefixstring = 'gen'The string prefix used to categorize the generated node name, typically indicating its generation source.

Returns

TypeDescription
stringA unique node identifier string composed of the prefix, process ID, and hostname.