Donations: Introduce timeouts in early stages of the workflow
This commit is contained in:
parent
7ef40c64c4
commit
fd794ae90d
42 changed files with 198 additions and 109 deletions
|
@ -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)}`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue