Donations: Introduce timeouts in early stages of the workflow

This commit is contained in:
Scott Nonnenberg 2025-07-31 07:15:59 +10:00 committed by GitHub
commit fd794ae90d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
42 changed files with 198 additions and 109 deletions

View file

@ -2108,10 +2108,10 @@ export function initialize({
}
function cancelInflightRequests(reason: string) {
const logId = `cancelInflightRequests/${reason}`;
log.warn(`${logId}: Cancelling ${inflightRequests.size} requests`);
log.warn(`${logId}: Canceling ${inflightRequests.size} requests`);
for (const request of inflightRequests) {
try {
request(new Error(`${logId}: Cancelled!`));
request(new Error(`${logId}: Canceled!`));
} catch (error: unknown) {
log.error(
`${logId}: Failed to cancel request: ${toLogFormat(error)}`