marcells / node-build-monitor

A Build Monitor written in Node.js, which supports several build services and can be easily extended.
https://marcells.github.io/node-build-monitor
MIT License
349 stars 168 forks source link

Reduce calls to TFS server when showBuildStep is enabled #243

Closed meeces2911 closed 2 years ago

meeces2911 commented 2 years ago

I probably should have commited this a while ago :(

Specifically in TFS/Azure DevOps 2020, the API limiting 'CircuitBreaker' seems a little more picky on how often things are called. So, while researching ways to increase this limit - it occurred to me, that we really don't need to get build steps for ones that have already finished running.

This resulted (for me) in significantly less calls to the API - going from 14 per refresh down to at most 4. (Based on only showing 12 builds or releases on screen at one time)

meeces2911 commented 2 years ago

Actually commited as the right user this time too!

marcells commented 2 years ago

Thank you very much!