MCPcopy
hub / github.com/celery/celery / node_format

Function node_format

celery/utils/nodenames.py:83–86  ·  view source on GitHub ↗

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

(s: str, name: str, **extra: dict)

Source from the content-addressed store, hash-verified

81
82
83def node_format(s: str, name: str, **extra: dict) -> str:
84 """Format worker node name (name@host.com)."""
85 shortname, host = nodesplit(name)
86 return host_format(s, host, shortname or NODENAME_DEFAULT, p=name, **extra)
87
88
89def _fmt_process_index(prefix: str = '', default: str = '0') -> str:

Callers 3

detachFunction · 0.90
workerFunction · 0.90

Calls 2

nodesplitFunction · 0.85
host_formatFunction · 0.85

Tested by

no test coverage detected