Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Example Using FuncX

...

Code Block
languagepy
titleExample funcX function invocation
linenumberstrue
import time

from funcx import FuncXExecutor
from funcx.sdk.client import FuncXClient
fx = FuncXExecutor(FuncXClient())

def add_func(a, bdouble(x):
    return ax +* b2

delta_endpoint = '<< your endpoint's ID >>'

futurewith FuncXExecutor(endpoint_id=delta_endpoint) as fxe:
    fut = fxfxe.submit(add_funcdouble, 5, 10, endpoint_id=delta_endpoint)
print(f7)
    print("Result is {futureof doubling:",fut.result()}")



Content by Label
showLabelsfalse
max5
spacesNCSASoftware
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "kb-how-to-article" and type = "page" and space = "NCSASoftware"
labelskb-how-to-article

...