-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #307 from jordilin/autothrottle
Implement auto throttling
- Loading branch information
Showing
40 changed files
with
1,109 additions
and
469 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ result | |
contracts/__pycache__ | ||
lcov.info | ||
/doc/book | ||
.description |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "git-ar" | ||
version = "1.0.4" | ||
version = "1.0.5" | ||
edition = "2021" | ||
|
||
license = "MIT" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# The list subcommand | ||
|
||
<!-- toc --> | ||
|
||
The list subcommand is used to pull data from specific resources such as | ||
pipelines and merge requests. Gitar implements best practices to avoid being | ||
rate limited, caches responses and uses pagination to pull the required data | ||
using the `--from-page` and `--to-page` flags. | ||
|
||
## Auto throttling | ||
|
||
Gitar will automatically throttle the requests after three consecutive HTTP | ||
calls have been made. The throttling is based on the rate limit headers plus a | ||
jitter interval between 1 and 5 seconds. The user can also specify a fixed | ||
throttle interval with `--throttle` or a random one with `--throttle-range`. | ||
|
||
## Max pages to fetch | ||
|
||
If no configuration is provided, the default is a max of 10 pages. This can be | ||
overriden with `--to-page` where it will fetch up to the specified page or a | ||
range of pages with `--from-page` and `--to-page`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.