CircleCI Ideas

Public API to get Workflow build Status

 

Currently we use the public API to get the status of our master builds. However, since we have moved over everything to use Circle 2 and have started using workflows the existing api is insufficient. I know you added an api to launch workflows but how about getting the status of a workflow. Is this something you can add to the API? It would be immensely valuable for us as we run continuous deploy and need to know as soon as possible when a master build fails.

 

  • Avatar32.5fb70cce7410889e661286fd7f1897de Guest
  • Aug 24 2018
  • Taking votes
API
  • Attach files
  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    11 Jan 10:14

    Additionally, we put time and effort into optimising our build times. This often ends up being a tradeoff between parallelism and queue time, so easy ac cess to information about workflows would help us great deal, even if it was just two timestamps for queued_at and stopped_at and a status. There are workarounds - by reducing over the job queue - but these are quite unwieldy in practice and make it very difficult, for example, to publish timings as a single Prometheus data point or something like that. Thanks for considering!

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    24 Jan 00:22
  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    11 Feb 04:38

    Any updates on this? Our team was previously using the CCTray feed for our build monitor (https://circleci.com/cc.xml?circle-token=<api-token>), but since moving to Circle 2 that is no longer useful, since it only returns the last build status, even if something else in the workflow failed.

  • Admin
    Nathan Dintenfass commented
    11 Feb 07:11

    This work is now in our "next up" pool - we are very aware of the need.

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    11 Feb 09:55

    Excellent news - thanks.

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    18 Mar 15:10

    Nathan, any update on this, and where it sits relative to other priorities?

  • Admin
    Nathan Dintenfass commented
    18 Mar 17:22

    @Rafael We are preparing to roll out a new version of the API that will include this. I hope to have a preview available "soon" -- will update here as it becomes available.

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    07 Apr 16:44

    Any updates on this ? :)

  • Admin
    Nathan Dintenfass commented
    31 Jul 05:43

    We are now in live preview release of our v2 API that has what most folks on this thread are looking for. Please take a look, and let us know if this will suit your needs: https://github.com/CircleCI-Public/api-preview-docs