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
| Name | Type | Description |
|---|---|---|
| hostname | `str | None` = None |
| prefix | string = 'gen' | The string prefix used to categorize the generated node name, typically indicating its generation source. |
Returns
| Type | Description |
|---|---|
string | A unique node identifier string composed of the prefix, process ID, and hostname. |