CircleCI helper binary for retrieving status of pipelines, workflows and jobs.
influxdata / circleci-helper Goto Github PK
View Code? Open in Web Editor NEWHelper tool for interacting with CircleCI APIs
Helper tool for interacting with CircleCI APIs
CircleCI helper binary for retrieving status of pipelines, workflows and jobs.
We recently had a couple workflows fail with:
2021-12-10T17:51:58.489Z INFO Not all workflows / jobs have finished, waiting for 10 seconds
Error running command: Get "https://circleci.com/api/v2/workflow/REDACTED/job": context deadline exceeded
This should not cause the entire command to fail; there should be a retry.
I think the originating section of code is
circleci-helper/cmd/circleci-helper/cmd/wait_for_jobs.go
Lines 60 to 78 in 762de9c
circleci-helper/cmd/circleci-helper/internal/waitForJobs.go
Lines 94 to 96 in b097502
One of our bottleneck pipelines block on this call -- in the worst case we have to wait 30 seconds longer after the upstream jobs complete.
Dropping the wait period down to 10s would be an easy change to help the bottleneck complete faster, or we could allow it to be configurable.
I saw that the v1 API docs mention rate limiting:
For HTTP APIs, when a request is throttled, you will receive HTTP status code 429. If your integration requires that a throttled request is completed, then you should retry these requests after a delay, using an exponential backoff. In most cases, the HTTP 429 response code will be accompanied by the Retry-After HTTP header. When this header is present, your integration should wait for the period of time specified by the header value before retrying a request.
I am not seeing any docs on v2 API rate limiting.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.