MCPcopy
hub / github.com/apache/caldera / run

Method run

app/contacts/handles/h_beacon.py:10–18  ·  view source on GitHub ↗
(message, services, caller)

Source from the content-addressed store, hash-verified

8
9 @staticmethod
10 async def run(message, services, caller):
11 callback = message.pop('callback', None)
12 message['executors'] = [e for e in message.get('executors', '').split(',') if e]
13 message['contact'] = 'udp'
14 await services.get('contact_svc').handle_heartbeat(**message)
15
16 if callback:
17 sock = socket.socket(family=socket.AF_INET, type=socket.SOCK_DGRAM)
18 sock.sendto('roger'.encode(), (caller, int(callback)))

Callers 3

handleMethod · 0.45
handle_msgMethod · 0.45
ftp_server_python_newMethod · 0.45

Calls 2

handle_heartbeatMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected