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
parent 7ef40c64c4
commit fd794ae90d
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)}`