Hi, I'm trying to have an input parameter of type ...
# flyte-v1-support
w
Hi, I'm trying to have an input parameter of type callable (python function) to the workflow (not task). When I register my workflow and open it on UI, I see the following inputs for the callable function param
custom_func
that I need to fill in. Can you please explain what file here means? is it a URL to the pickled python function stored somewhere where flyte can access it?
f
you cannot. this is a pickled object
you have to use python to run it
w
are you saying that I can use the url of the function pickle object here?
f
yes
w
I know that functions of the type callable can be passed between tasks, but my question is what if I want to pass it as an input on the workflow level
will flyte automatically unpickle and pass this as python function to tasks within the workflow?
f
yes
as long as you pass the pickle file
w
thanks!