Skip to content

Commit

Permalink
infra: increase download jitter (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio authored Nov 24, 2024
1 parent aba7f82 commit 5b0cf0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/ScheduledJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function getPreparedSourceUrl(array $map = []): string
public function fetchSource(array $map = []): Response
{
// Jitter to prevent rate limiting
usleep(1000 * rand(1, 256));
usleep(1000 * rand(50, 256));

return Http::createPendingRequest()
->when($this->requiresAuthentication(), function (PendingRequest $request) {
Expand Down

0 comments on commit 5b0cf0c

Please sign in to comment.