02/10/2021, 8:16 AM
Hi, I have a use case which might be not really in the scope of prefect, just wanted to raise some awareness around it, maybe it's something that could be considered :) We are using prefect as kind of a computation platform, just a place where you can run certain things without having to set them up locally, so using the manual trigger a lot. I would like to trigger some flows through the API, but as far as I can tell, there's no simple way to get a response back about the RESULT (for example where the output was written to) of the flow. To do so, I would have to trigger the flow, poll the state of the flow until finished, get the result of the last task of the flow, and then return that. Are there any other options that I did not see? I am aware that this probably is not the main focus of prefect, but other option would be to switch to something like celery for some tasks that need a response. Thanks


02/10/2021, 1:39 PM
Hi @Kilian, yeah the process you outlined where you wait for the finished sate and then get the result of the last task if currently the way you would achieve this use case.
👍 1