-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
105 additions
and
6 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
changelog.d/20240918_223810_kevin_bursty_rate_limit_executor_submit.rst
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,15 @@ | ||
Changed | ||
^^^^^^^ | ||
|
||
- The Executor now implements a bursty rate-limit in the background submission | ||
thread. The Executor is designed to coalesce up to ``.batch_size`` of tasks | ||
and submit them in a single API call. But if tasks are supplied to the | ||
Executor at just the right frequency, it will send much smaller batches more | ||
frequently which is "not nice" to the API. This change allows "bursts" of up | ||
to 4 API calls in a 16s window, and then will back off to submit every 4 | ||
seconds. Notes: | ||
|
||
- ``.batch_size`` currently defaults to 128 but is user-settable | ||
|
||
- If the Executor is able to completely fill the batch of tasks sent to the | ||
API, that call is not counted toward the burst limit |
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
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