Skip to content

fix: Handle exceptions from addBatchOfRequests - #4523

Merged
janbuchar merged 2 commits into
masterfrom
improve-request-batch-retries
Dec 1, 2026
Merged

janbuchar merged 2 commits into
masterfrom
improve-request-batch-retries

Conversation

@janbuchar

Copy link
Copy Markdown
Contributor

@janbuchar janbuchar added adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team. labels Dec 1, 2026
@janbuchar janbuchar self-assigned this Dec 1, 2026

@vladfrangu vladfrangu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small nit / suggestion but otherwise lgtm

await sleep(deferred ? 0 : waitBetweenBatchesMillis);
}
// Whoever does await the remainder still learns that it was not added in full.
if (backgroundFailures.length > 0) throw backgroundFailures[0];

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@janbuchar
janbuchar enabled auto-merge (squash) December 1, 2026 14:03
@janbuchar
janbuchar merged commit 8287f4a into master Dec 1, 2026
10 checks passed
@janbuchar
janbuchar deleted the improve-request-batch-retries branch December 1, 2026 14:06
janbuchar added a commit to apify/apify-sdk-js that referenced this pull request Dec 1, 2026
…ify API calls (#906)

- follow up to apify/crawlee#4509
- apify/crawlee#4523 is needed for this to work
correctly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants