Is there a way to locally execute a task or workflow using the inputs from a remote execution, ideally diretly using the Json string from the UI? The dispatch_execute (https://github.com/flyteorg/flytekit/blob/master/flytekit/bin/entrypoint.py#L63) function seems to do what I am looking for, but expects a pb as input. Does this work at all (either with pb or with json)? If yes, is there a way to directly use the Json from the UI or how can I easily find the inputs.pb for a remote task execution?
t
tall-lock-23197
05/04/2023, 10:33 AM
Hi @white-teacher-47376! What json string are you referring to?
w
white-teacher-47376
05/04/2023, 10:46 AM
I am referring to the inputs from here:
white-teacher-47376
05/04/2023, 10:48 AM
So the idea would be to copy these inputs, paste them into my local python script and somehow start a local execution of a task or a workflow with these inputs
Thanks for your reply. I understand that I can execute workflows remotely using FlyteRemote, but I would like to execute the workflow locally, using the inputs from a previous remote execution. So the question is if there is something similar to the dispatch_execute function for the workflow object?