creamy-diamond-7912
08/08/2025, 4:17 PMflyte run --local hello.py main --n 10
but it is only performing a dry-run of it. How do i run it locally and get the output as well?jolly-florist-66728
08/08/2025, 4:17 PMjolly-florist-66728
08/08/2025, 4:18 PMpyflyte run hello.py main --n 10
(without the --local
flag). The --local
flag is not required for local execution and may trigger a dry-run or validation mode instead of actual execution. The output will be printed to your terminal if your workflow returns a value or prints within a __main__
block.
For example:
pyflyte run hello.py main --n 10
This will execute the workflow and display the output in your terminal, as described in the Quickstart guide and README. Would you like more detail or a code example?
Sources:
- Quickstart guide
- README 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.broad-monitor-993
08/08/2025, 5:14 PMget the output as welldid you want to write the output to a file, or further operate on it in a python runtime?
creamy-diamond-7912
08/08/2025, 5:27 PMcreamy-diamond-7912
08/08/2025, 5:29 PMflyte run --local hello.py transform_item --item "longword"
that I would have saw a print out of something like i saw in the last line, ie ['processed: longword'] but i just see it print that it created a dry-runcreamy-diamond-7912
08/08/2025, 5:31 PMbroad-monitor-993
08/08/2025, 5:32 PMdry-run
refers to the fact that it’s not running on an actual Flyte clustercreamy-diamond-7912
08/08/2025, 5:34 PMbroad-monitor-993
08/08/2025, 5:37 PMflyte run
prints out the output of the function to stdout… if you add a print
statement in transform_item
you should be able to see the valuecreamy-diamond-7912
08/08/2025, 5:39 PMcreamy-diamond-7912
08/08/2025, 5:41 PMbroad-monitor-993
08/08/2025, 5:41 PMcreamy-diamond-7912
08/08/2025, 5:44 PMbroad-monitor-993
08/08/2025, 5:48 PMcreamy-diamond-7912
08/08/2025, 5:49 PMcreamy-diamond-7912
08/08/2025, 5:49 PM