MCPcopy Index your code
hub / github.com/cloudpipe/cloudpickle / call_func

Function call_func

tests/testutils.py:128–135  ·  view source on GitHub ↗

Remote function call that uses cloudpickle to transport everthing

(payload, protocol)

Source from the content-addressed store, hash-verified

126
127
128def call_func(payload, protocol):
129 """Remote function call that uses cloudpickle to transport everthing"""
130 func, args, kwargs = loads(payload)
131 try:
132 result = func(*args, **kwargs)
133 except BaseException as e:
134 result = e
135 return dumps(result, protocol=protocol)
136
137
138class _Worker:

Callers

nothing calls this directly

Calls 1

dumpsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…