When using `flow.run()` is it possible to override...
# prefect-server
t
When using
flow.run()
is it possible to override the result class/type? Doing:
Copy code
flow.run(result=LocalResult(...))
fails with:
Copy code
TypeError: run() got an unexpected keyword argument 'result'
k
The FlowRunner.run() only takes in context, parameters, executor. I know you’re probably very aware of this by now but
if name == main
😅 would overwrite.
t
I’m confused, this is what I’m trying to do:if
Copy code
if __name__ == "__main__":
    flow.run(result=local_storage())
or am I misunderstanding something?
k
This will override
Copy code
if __name__ == "__main__":
    flow.result = local_storage()
    flow.run()
t
Oh right! Thank you 🙏