Is it possible to query a flow's progress using the Rest API?
We're building a data sync integration between 2 platforms and would like to expose a simple progress bar / error / success in our frontend. Users won't have direct access to Windmill or anything like that, so we're not exposing any kind of UI, just want to have some sync state
3 Replies
I believe that you can use https://www.windmill.dev/docs/advanced/explicit_progress and query that info using the API
get job progress
https://app.windmill.dev/openapi.html#tag/metrics/POST/w/{workspace}/job_metrics/set_progress/{id} and scroll a bit.Set/Get progress from code | Windmill
By default, Windmill only tracks the start and completion of a job, without monitoring its intermediate progress.
this is for scripts though
i wonder if it's possible to get some kind of heuristic for the entire flow
i think i don't need % granularity now that i think about it, it would be good enough to know if it's successful or not & which Step it's on
The docs says
When previewing an individual job, a progress bar will appear after 5 seconds of execution (if the set_progress function is used) or immediately for flows.
, it says flows
so I believe it works for flows as well.