Not obvious how I get the current status of a flow...
# ask-community
t
Not obvious how I get the current status of a flow run via the REST API
z
Using the Python client or another HTTP client?
t
Another client
So I need raw request
j
I did this in curl:
Copy code
curl -X GET \
    -H "Accept: application/json" \
    -H "Content-Type: application/json" \
    <http://127.0.0.1:4200/api/health>
Ah sorry that's for my Orion instance, not a flow
z
If you’re running the API locally, it’s easy to view the documentation at http://localhost:4200/api/docs
The state is attached to the returned flow run, presumably you’re interested in the state’s type which is an enum.
t
We need this on the front end to query the state of the flow launched via a deployment
This is exactly what I needed. Thanks @Zanie and @James Gatter for your fast response. Have an awesome weekend!
109 Views